Computer Science, asked by Shubhangee448, 8 months ago

Assign a value TEST to a variable with requisite data type

Answers

Answered by RAthi21
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