[Solved] how to define a variable [closed]


I think you are looking for this :

confirm("I.AM.READY!");
var age=18;
age = prompt("What's your age?");
if (+age>=18)
{
  console.log("You can play");
}
else
{
  console.log("we take no responsibilty");
}

console.log(param); , takes the below as parameters :

obj1 … objN :
A list of JavaScript objects to output. The string representations of each of these objects are appended together in the order listed and output.

msg:
A JavaScript string containing zero or more substitution strings.

subst1 … substN:
JavaScript objects with which to replace substitution strings within msg. This gives you additional control over the format of the output.

console.log(we take no responsibilty); // <<missing the quotes around the String

5

solved how to define a variable [closed]