Lesson 2- "types" is a "BUST"


#1

https://www.codecademy.com/en/courses/learn-javascript/lessons/introduction-to-javascript/exercises/types

Lesson 2- “types” is a “BUST”. Whenever I attempt to run it, the display to the right displays errors…

Please advise.

<Below this line, add a link to the EXACT exercise that you are stuck at.>

<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>

/home/ccuser/workspace/javascript_101_unit_1_v10/types.js:1
(function (exports, require, module, __filename, __dirname) { var myString = me;
^

ReferenceError: ghost is not defined
at Object. (/home/ccuser/workspace/javascript_101_unit_1_v10/types.js:1:78)
at Module._compile (module.js:571:32)
at Object.Module._extensions…js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:427:7)
at startup (bootstrap_node.js:151:9)
at bootstrap_node.js:542:3

My code is below:



var myString = me;
var myNumber = 1;
var myBoolean = true;


// Do not edit the code under this line
console.log("Name: " + myString);
console.log("Lucky Number: " + myNumber);
console.log("Good joke? " + myBoolean);



#2

You have to put what you assign to myString in quotes.
var myString = “me”;


#3

Thank You sooo much. :smiley:


#4

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