SECTION 2 | ABOUT THIS COURSE
Nodejs will help with the ability to install and use 3rd party libraries. LINK TO DOWNLOAD (Use LTS version)
Live Server will help quick viewing of your project as you are developing. (VSC extension by: Ritwick Day)
You will write your code in Visual Studio Code and you will view your program in your Web Browser, we further explain this later.
SECTION 3 | HELLO WORLD
STEP 6 | To run your program - A | In VSC's top menu, click on Run. B | Choose 'Run Without Debugging' (or press Ctrl + F5). C | When prompted, select Node.js as the environment/debugger. D | Your code should now execute, and "Hello World" will be displayed in the VSC terminal.
SECTION 4 | ALERT AND CONSOLE LOG
Both alert and console.log are used to display information, but they serve different purposes and are used in different contexts.
Purpose: Primarily used to display messages directly to the user.
Display: Shows a popup dialog box in the browser.
Interactivity: Interrupts the user's flow because they have to click "OK" to close the dialog.
Use Cases: Useful for simple notifications, warnings, or error messages to the user.
Purpose: Primarily used for debugging and development purposes.
Display: Outputs information to the browser's console (not visible to users unless they open the developer tools).
Interactivity: Non-intrusive; doesn't interrupt the user's interaction with the webpage.
Use Cases: Useful for developers to log information, errors, objects, or track code execution.