Unknown errors in Arrays section


#1

PLEASE help me. Even tho i click button get code. Then i customize some strings it givies me error stated bellow.

Im stuck at array section. All excercises

This is that error

/home/ccuser/workspace/learn-javascript-arrays-loops-L1E2-6/main.js:5
console.log(NewYearsResolution)
^

ReferenceError: NewYearsResolution is not defined
at Object. (/home/ccuser/workspace/learn-javascript-arrays-loops-L1E2-6/main.js:5:13)
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

this is my code:

let newYearsResolutions = ['krk', 'kvk', 'lll'];

newYearsResolutions.push('Climb a mountain', 'Learn to Code');

console.log(NewYearsResolution)

newYearsResolutions.pop();
console.log(newYearsResolutions);

#2

btw it is not working even tho i change “New” to “new” in first console.log


#3

The error message is correct for the given code. Change the N to n and add an s to pluralize it.


#4

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