What did i do incorrectly? stuck


#1

// On line 2, declare a variable myName and give it your name.
var myName = "Niek Visser";
// On line 4, use console.log to print out the myName variable.
console.log = myName;
// On line 7, change the value of myName to be just the first 2
// letters of your name.
var myName = "Ni";
// On line 9, use console.log to print out the myName variable.
console.log = myName;


#2

console.log() is used like console.log(myName), not console.log = myName. Fix it and you should be good to advance.


#3

doesn't work still the same message:

Oops, try again. It looks like you didn't log your whole name to the console.


#4

i chanched it into this:

// On line 2, declare a variable myName and give it your name.
var myName = "Niek Visser";
// On line 4, use console.log to print out the myName variable.
console.log = (myName);
// On line 7, change the value of myName to be just the first 2
// letters of your name.
var myName = "Ni";
// On line 9, use console.log to print out the myName variable.
console.log = (myName);


#5

You should try some thing like this:

// Here you declare a variable myName and affect value "Niek Visser" to it
var myName = "Niek Visser";

//Here you print it out
console.log(myName)

// Here you change the value of the variable without declaring it a new one with the same name
myName = "Ni";

//Here you print it out again
console.log (myName)