Programming Fundamentals/Introduction Examples JavaScript

Overview
JavaScript, often abbreviated as JS, is a high-level, interpreted programming language. Alongside HTML and CSS, JavaScript is one of the three core technologies of the World Wide Web. JavaScript enables interactive web pages and therefore is an essential part of web applications. The vast majority of websites use it, and all major web browsers have a dedicated JavaScript engine to execute it.

JavaScript is one of the most popular current programming languages, and is the primary programming language for front-end web development. JavaScript files have a .js file extension. JavaScript has been implemented in multiple platforms with different I/O commands. Several examples follow.

Output
Hello world!

Discussion
Each code element represents:
 * begins a comment
 * writes to the JavaScript console output log
 * is the literal string to be displayed

Output
Hello world!

Discussion
Each code element represents:
 * begins a comment
 * calls the window alert function to display a message
 * is the literal string to be displayed

Output
Hello world!

Discussion
Each code element represents:
 * begins a comment
 * writes output to the current document
 * is the literal string to be displayed

JavaScript IDEs
There are many free cloud-based and local IDEs available to begin coding in JavaScript. Check with your instructor or do your own research for recommendations.

Cloud-Based IDEs

 * Chapman.edu: Online JavaScript Interpreter
 * CodeChef
 * GDB Online
 * Ideone
 * paiza.IO
 * PythonTutor
 * repl.it

Local IDEs

 * Brackets (text editor)
 * Visual Studio Code