Ask coding questions

← Back to all posts
Error using let
TajsiaOakley

Hello all,

I am trying to use the command let currentUser = Katherine and I keep getting an error. Getting frustrated trying to complete such a simple task:

ReferenceError: Katherine is not defined
at /home/runner/RedundantUsableAssociate/index.js:1:19
at Script.runInContext (vm.js:130:18)
at Object.<anonymous> (/run_dir/interp.js:209:20)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint as runMain
at internal/main/run_main_module.js:17:47Hint: hit control+c anytime to enter REPL.

Voters
TajsiaOakley
Comments
hotnewtop
BartKeijzer
Coder100

To use strings, add quotation marks (")

correct code: