Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
I have a variable defined using const keyword. function Text() { const variable = "Hello!"; } console.log(variable); When I try to access this variable, I get: Uncaught ReferenceError...
#1: Initial revision
Uncaught ReferenceError: variable is not defined
I have a variable defined using `const` keyword. ```javascript function Text() { const variable = "Hello!"; } console.log(variable); ``` When I try to access this variable, I get: `Uncaught ReferenceError: variable is not defined` What am I missing?