Image from Greg Rakozy on Unsplash.

When learning JavaScript, it’s easy to be intimidated by a lot of jargon, such as “syntax parser”, “lexical environment”, “execution context”, and “hoisting”. Such terms surely have to be as complex as they sound, right? Not so. Let’s demystify some of this stuff and talk about what’s going on behind the scenes with JavaScript.

Syntax Parsers, Lexical Environments, & Execution Contexts

First of all, let’s get some definitions for these terms that (hopefully) make some sense.

A syntax parser is a program that reads code and determines what it does, as well as if its grammar is valid. More common names for a syntax parser are interpreter

Rachel Opperman

Fullstack web developer primarily working with the MERN stack. Always learning. 🏔📚

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store