© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
J. SimpsonHow JavaScript Works https://doi.org/10.1007/978-1-4842-9738-4_2

2. Code Structure and Logical Statements

Jonathon Simpson1  
(1)
Belfast, Antrim, UK
 

In the previous chapter, we covered the fundamental definitions of JavaScript and where we write it. Now that we’ve discussed the basics, let’s start learning about how we write JavaScript code. In this chapter, we’ll cover the fundamentals, which includes code structure, logical statements, and variables. Mastering these concepts is a requirement to writing useful JavaScript code. Where relevant, we’ll also be diving deeper into how these basic concepts actually work, so that you have a deeper understanding ...

Get How JavaScript Works: Master the Basics of JavaScript and Modern Web App Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.