[var , let , const] Memory Asignment - 2

soom·2020년 8월 17일
1
post-thumbnail
post-custom-banner

Memory Asignment


1. let


1st.example

console.log("Before: ", greeting);

let greeting = "hola";

console.log("After: ", greeting);

ReferenceError: Cannot access 'greeting' before initialization


2nd.example

greeting = "hello";
console.log("Before: ", greeting);

let greeting = "hola";

console.log("After: ", greeting);

ReferenceError: Cannot access 'greeting' before initialization


profile
yeeaasss rules!!!!

0개의 댓글