Technical requirements
To develop in JavaScript, and write and then run the programs in this book, you will need the following:
- A text editor for computer programs, for example, Notepad++, Sublime Text, EditPlus, or Visual Studio.
- An internet browser, for example, Chrome, Firefox, Safari, or Edge.
- A PHP server, for example, XAMPP or WampServer. The PHP server will be used to execute JavaScript programs containing
import
statements in HTML pages because theseimport
statements only work on an HTTP server. - A Node.js server: The Node.js server will be created through Node.js installation. We will also install and use the MongoDB database to associate the Node.js server with a database.
- You can find the code files for this chapter on GitHub at: https://github.com/PacktPublishing/JavaScript-from-Frontend-to-Backend/blob/main/Chapter%201.zip.
Let’s now begin our discovery of JavaScript, by studying the different types of variables it offers us.