Sept 13, 2022
JavaScript is a computer programming language that shares many common features with other general purpose programming languages. JavaScript is used on both the server-side and the client-side. Where HTML provides our content structure and CSS provides our styles and layout, JavaScript will be used to provide behaviors or features to our web applications.
Node.js is a JavaScript runtime which we will use to write server-side code and development utilities. It can also be useful while learning JavaScript, as we can quickly run scripts from the command line. You can install Node.js from nodejs.com. Get the version labeled “Recommended for most users”. Once installed, you can use the node command in Terminal or Git Bash (may require new shell).
node console.js
JavaScript can also run within the web browser. We will separate our JavaScript into its own files and include it inside of our HTML.
<script src="console.js"></script>