Java scripist


#1

Continuing the discussion from [FAQ] Common Problems #Read Me:


error is
Your code doesn't look quite right


Replace this line with your code. 

var myName;
myName="tsitsi";// On line 2, declare a variable myName and give it your name.

console.log(myName.substring("tsitsi"));// On line 4, use console.log to print out the myName variable.

// On line 7, change the value of myName to be just the first 2 
myName ="tsi"
tsitsi// letters of your name.
console.log(myName.substring("tsitsi"));
// On line 9, use console.log to print out the myName variable.


#2

here:

console.log(myName.substring("tsitsi"));// On line 4, use console.log to print out the myName variable

it doesn't say to use substring? and you should log the myName variable, not tsitsi string

here:

// On line 7, change the value of myName to be just the first 2 
myName ="tsi"

you should use substring to get the first to letters of string stored in myName variable, then on line 9 log myName variable which now should contain the first two letters of your name


#3

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