Question 26 on javascript


#1


// On line 2, declare a variable myName and give it your name.
var myName = "peleg";
// 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 = myName.substring(0,2);
// On line 9, use console.log to print out the myName variable.
console.log = myName;


I cant figure it out 
question 26 on javascript


#2

you should type

console.log(myName);

the console log isnt equal to var myName.

hope it helped :stuck_out_tongue:


#3

Is is writting me " TypeError: console.log is not a function"


#4

watch that thread, i think it will help you.


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.