Computer Science, asked by fofjcjcjc, 1 year ago

what is JavaScript variable?​

Answers

Answered by Anonymous
3

Answer:

JavaScript uses the var keyword to define variables.

An equal sign is used to assign values to variables.

In this example, x is defined as a variable. Then, x is assigned (given) the value 6:

var x;

x = 6

Answered by thakurji80
1

Answer:

Heya mate GM

A JavaScript variable is simply a name of storage location. There are two types of variables in JavaScript : local variable and global variable. There are some rules while declaring a JavaScript variable (also known as identifiers). Name must start with a letter (a to z or A to Z), underscore( _ ), or dollar( $ ) sign.

Similar questions