Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

ReferenceError

//Occurs when a non-existent variable is used/referenced

let firstName = "Jack";
 console.log(firstname);

//The variable firstname does not exist; it is a misspelling of firstName.
Source by education.launchcode.org #
 
PREVIOUS NEXT
Tagged: #ReferenceError
ADD COMMENT
Topic
Name
4+7 =