Help! im stuck on 26


#1

please help i'm stuck


#2

Please paste in your code, the error and the lesson URL


#3

here -----> var myName = 'elionai'
console.log(elionai.length)
console.log(elionai.substring(0,3))


#4

u still there??? :confused:


#5

Try putting your name in quotes


#6

var myName = 'elionai'

Here you have written code that sets a variable called myName to a string "elionai", so now you should use your new variable name instead of the string.


#7

like this ?

var myName = 'elionai'
console.log('elionai'.length)
console.log('elionai'.substring(0,3))


#8

Just try to follow the comments in the code.
Just so you know:

The code you typed looks good but you need to change in line 2 and 3 to the variable name (myName)
and then use console.log to print out the myName variable


#9

?

var myName = 'elionai'
console.log('myName'.length)
console.log('myName'.substring(0,3))


#10

Perfect! just remove the quotes in lines 2 and 3 and thats it

Now you just need to print to the console the myName variable by tryping:

console.log(myName)

#11

var myName = 'elionai'
console.log(myName.length)
console.log(myName.substring(0,7))


#12

HELLLOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO u still there


#13

Yes but remember, you need just the first 2 letters of your name so it should be:

console.log(myName.substring(0,2))

and then, on another line (i believe on line 9) type:

console.log(myName)

#14

line 9 !!!!?????? :confused: :neutral_face: :sweat_smile: :cold_sweat: :sweat: :smile_cat:


#15

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