Whats wrong with this?


#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);

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


#2

console.log(myName);

console.log(myName.substring(0,3);

console.log(myName)

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.
console.log(myName.substring(0,2));
// On line 9, use console.log to print out the myName variable.
console.log = (myName);


#3

myName = myName.substring(0,2);