Signup/Sign In
Ask Question
Not satisfied by the Answer? Still looking for a better solution?

Level:2/lesson 3

In the code provided in the editor, we have defined multiple variables, some have valid names, some don't.

You have to correct the variable names that have incorrect names.

For the first incorrect variable name, use the name bestApp, and for the second incorrect variable name, use the name num.

If you find one more incorrect variable name, then use the name var1 for it. This is a trick question. It's possible that there is no other variable with an incorrect name.

Once you are done updating the variable names, use console.log() statements to log every variable separately in the console, in the exact order in which they were created. So you will have to add 4 console.log() statements.
by

1 Answer

iamabhishek
Here is the correct answer:

var bestApp = 'studytonight';
let _code = 'I love coding';
let num = 007;
let $123 = 100;
console.log(bestApp);
console.log(_code);
console.log(num);
console.log($123);

Login / Signup to Answer the Question.