DEV Community

loading...

Discussion on: Hoisting in JavaScript

Collapse
codenutt profile image
Jared • Edited

Nice explanation! Small adjustment, your first function would throw an error because Dave is not defined. Im assuming you meant thats a string, but since this is a beginners tut, probably be good if thats clear :)

Collapse
papabearcodes profile image
David Quick Author

Thank you for catching that! Yeah, it was meant to be a string. Just fixed it now.

Collapse
codenutt profile image
Jared

No problem! Pesky parentheses haha