So Ive been having a problem with project where in step 4 I do the exact same thing (as far as I can see, Im a total beginner tho) as in the walkthrough video and I still get an error
heres the link to the excercise: https://www.codecademy.com/courses/introduction-to-javascript/projects/mini-linter
heres my code:
let reallyCount = 0
let veryCount = 0
let basicallyCount = 0
for (word of storyWords) {
if (word === “really”) {
reallyCount +=
} else if (word === "very") {
veryCount +=
} else if (word === “basically”) {
basicallyCount +=
}
}
And finally heres the error Ive been getting;
/home/ccuser/workspace/learn-javascript-iterators-P1/main.js:21
} else if (word === “very”) {
^
SyntaxError: Unexpected token }
at createScript (vm.js:53:10)
at Object.runInThisContext (vm.js:95:10)
at Module._compile (module.js:543:28)
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)
If anyone could help out with what Im doing wrong Id appreciate it a lot, Im guessing its smth basic that Im overlooking but I still cant find it, also I do realize there a lot of other discussions on this project but I cant seem to find anyone else getting my error.
Thanks in advance for any help.