Hello World | Bondar Academy
Course: JavaScript for Testers
Module: JavaScript Fundamentals
Instructor: Artem Bondar
Lesson Summary
This lesson introduces the traditional Hello World application, a common first project when learning a new programming language. Here’s a step-by-step summary of the process: Setting Up the Environment Create a new folder named JS Fundamentals on your computer. Ensure that your development environment is configured with Node.js and Visual Studio Code installed. Creating the Project Open Visual Studio Code and load the empty folder you created. Open the terminal in VS Code by selecting Terminal > New Terminal . Run the command npm init to create a package.json file, which is the configuration file for your Node.js application. Accept the default values by pressing Enter multiple times until the file is created. Creating JavaScript Files Create a new folder named lessons inside the JS Fundamentals folder. Create a new JavaScript file named lesson1.js in the lessons folder. Writing and Running the Code In lesson1.js , write the following code: console.log('Hello World'); To run the code: Change to the lessons folder in the terminal using cd lessons . Execute the file with node lesson1.js . Upon running, you should see Hello World printed in the console, confirming that your first program is working. In the next lesson, you will continue to explore more JavaScript examples.