JavaScript Fundamentals
Before we start diving into the various data structures and algorithms, let's have a quick overview of the JavaScript language. This section will present the JavaScript fundamental concepts required to implement the algorithms we will create in the subsequent chapters.
Hello World
We will begin with the classic "Hello, World!" example, a simple program that displays the message "Hello, World!".
Let's create our first example together. Follow these steps:
- Create a folder named
javascript-datastructures-algorithms
. - Inside it, create a folder named
src
(source, where we will create our files for this book). - Inside the
src
folder, create a folder named01-intro
We can place all the examples for this chapter inside this directory. Now let's create a Hello, World
example. To do so, create a file named 01-hello-variables.js
. Inside the file, add the code below:
console.log('Hello, World!');
To run this example, you can...