This is just for training purposes or something is wrong about my code?

I wonder why the code just can works with codeacademy console and not JS console in google chrome? Maybe there is something bad about my code i was not able to make it work untill i change the type of variables.

i always stop learning for this kind of issues that makes me confused.

image

Thx so much people from now for helping to solve my doubts!.

How do you open it in the Chrome browser?

i was trying to practice with tools for devs

Do you see anything in the console? And if not, how did you open the file in Chrome browser? And which file?