DEV Community

Discussion on: #100DaysOfVanillaJS: JavaScript Lexical Structure, As Explained By Pokemon

Collapse
 
morjodomo profile image
🪐 CAPITALISTS HATE HER

Why do you put console.log(const [variablename]) - Does that do anything that just console.log (variablename) doesn't?

I didn't know you could do that, so I'm glad you pointed it out!

Collapse
 
taeluralexis profile image
Tae'lur Alexis 🦄⚛

You actually just pointed out an error lol I didn’t even notice I wrote that. Thank you so much for pointing it out. Only the variable name should be in the parentheses, not the type of variable too :)

Collapse
 
morjodomo profile image
🪐 CAPITALISTS HATE HER

I'm glad I asked lol I was going "Wow, learning all sorts of things today!"

Thread Thread
 
taeluralexis profile image
Tae'lur Alexis 🦄⚛

Yess thank you! It's fixed and updated now lol :)