Please Help with 24.Variables!


#1

Hello! It's been a wonderful experience on Codecademy, Learning JavaScript. But, in JS, as it turns out, I'm not able to do Variables. Please help! It's in Getting Started with Programming, as I've just started.
Thanks!!!!

Yours sincerely,


#2

// Be careful with the substring's letter positions!
"wonderful day".substring(3,7);

try that, that's how I passed, but im stuck on 20 can you help? since you're on 22 im guessing you passed it :smile:


#3

Oh, thanks! Luckily, I passed before your answer came XDDD lol


#4

Ugh now the 24 thingy is getting on me..


#5

Ok, the 20th one is easy. What its saying is to write console.log with the numbers 14 / 3, 99 / 8, and 11 / 3.
But, replace the '/'s with a percentage sign, like this: %, and write console.log before each on on a different line.


#6

var myName 40;
console.log(40);

this is all :smiley:


#7

@objectsolver71374 The variable should be myAge, not myName, and you should console.log() myAge, not40.


#8

I know it's an old topic, but:
to assign a value to a variable you need an equals sign =

var myAge = 40;
console.log(myAge);