Assign a value TEST to a variable with requisite data type
Answers
Answered by
1
hello!
_____
Assigning variables
Here’s how we create a variable named score in JavaScript:-
var score = 0;
That line of code is called a statement. All programs are made up of statements.and each statement is an instruction to the computer about something we need it to do.
Let's add the lives variable:-
var score = 0
var lives = 3
Similar questions
Math,
4 months ago
Math,
4 months ago
English,
8 months ago
History,
8 months ago
Social Sciences,
11 months ago