Discover the best answers to your questions with the help of IDNLearn.com. Our platform offers detailed and accurate responses from experts, helping you navigate any topic with confidence.

pleaseee helpppppppppp

Pleaseee Helpppppppppp class=

Sagot :

Answer:

EXAMPLE -

Create a variable and assign your age

var myage = 32;

type your age:

console.log(my age) ;

Notice that we did not type the actual numeric age. We used the variable instead. There wouldn’t be any purpose of declaring a variable if we were going to type 32 directly.

This makes the scrip more portable which means that the result on the screen is independent of the code console.log(myAge); . If we need to change our age all we have to do is to assign another number to the variable myAge and the output will change automatically. That’s the purpose of a variable.