Variables_popcorn_hax_ipynb_2_
Popcorn Hack 1: Variable Naming, and Strings in JavaScript
Instructions:
- 
    
Open a new cell and set its type to
Code. - 
    
Using the correct
variable naming casefor JavaScript - 
    
Create a string variable for
"gameQuestion"and let it equal:"My favorite video game is " - 
    
create a variable for
"gameAnswer"and let it equal: your favorite game - 
    
output your
gameQuestionandgameAnswerto the console[EX: console.log(gameQuestion + gameAnswer);] - 
    
Open your console and see if it displayed the correct message
 
Popcorn Hack 2: Null, Undefined, Symbol, in JavaScript
Instructions:
- 
    
Open a new cell and set its type to
Code. - 
    
Create a variable
nullVarand set it tonull. - 
    
Create a variable
undefinedVarand leave it uninitialized. - 
    
Create a variable
symbolVarand set it to a new Symbol with a description of your choice.[EX: let myRPG = Symbol("Pokemon");] - 
    
Output all three variables to the console using
console.log(). 
%%js
let gameQuestion = "My favourite game is"
let gameAnswer = "Omori."
console.log(gameQuestion,gameAnswer)
<IPython.core.display.Javascript object>
%%js
let nullVar = null;
let undefinedVar;
let symbolVar = Symbol("No idea");
console.log(nullVar)
console.log(undefinedVar)
console.log(symbolVar)
<IPython.core.display.Javascript object>