25. More Variable Practice, Please Help!


#1

I just plain have no idea what to do, whatever i try to do, an error pops up


#2

Hi can you post your code and the error you get.


#3

my code:

console.log("myCountry")
var myCountry = "New York";

console.log(myCountry.length);

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

and the error:

Oops, try again. It looks like you didn't log the first 3 letters of myCountry to the console.


#4

Hi here

console.log(myCountry.substring(0,.3))

Inside your substring() Your put a . before your number 3 remove it


#5

let me tell you how well this worked! #OWNED :smile:


#6

I had no idea this stupid "." was there


#7

P.S., you said "here" instaid of "there"! :wink: lol, i do this all the time