من یه کد ساده زدم و کلا باید وقتی بازش میکنم یه مستطیل مشکی نشون بده ولی هیچی نشون نمیده...میشه اگه کسی میدونه بگه مشکل کجاست؟index2.html:
<html>
<head>
<title>tetris</title>
</head>
<body>
<convas id="tetris" width="240" height="400"></convas>
<script src="tetris2.js"></script>
</body>
</html>
tetris2.js:
const convas = document.getElementById('tetris');
const context = convas.getContext('2d');
context.fillStyle='#000';
context.fillRect(10,20,convas.width,convas.height);