Peake_Dad avatar

JavaScript - Variable declaration

strangedad

Published: 09 Jul 2024 › Updated: 09 Jul 2024JavaScript - Variable declaration

JavaScript - Variable declaration

So I spent the day learning a little bit. I'll attempt some simple games this week.

# These are the variable functions w/ description 

var: Function or globally scoped, can be redeclared.
let: Block-scoped, cannot be redeclared in the same scope.
const: Block-scoped, cannot be redeclared or reassigned.

Leave JavaScript - Variable declaration to:

Written by

Surviving the American Dream, and a father of 2.

Read more #hive-188262 posts


Best Posts From Peake_Dad

We have not curated any of strangedad's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Peake_Dad