Loading...
Please consider supporting this blog by opting in for cryptocurrency mining with your browser's secure Javascript environment. Thank you!

Javascript Basics

Basic Javascript syntax and programming concepts.

Caleb Faught Web

Javascript Basics

In my opinion, Javascript is a great language for beginners, because it is already installed in your browser! You can open up the console (Cmd + Opt + J for Mac OS users and Ctrl + Shift + J for Windows users) in Chrome and start writing code immediately. Alternatively, I will have code examples like the one below spaced throughout with an interactive prompt where you can write code and just hit run.

Some History

Javascript is the defacto language of the web. Written in 1995 by Brendan Eich originally for the Netscape internet browser, Javascript was originally named Mocha. Over the years Javascript has evolved and has seen a lot of changes, the name Javascript has stuck after originally being coined to draw on the publicity of Java (a completely different language altogether); the official name is actually ECMAScript with the most current version number of 6 (i.e. ECMAScript 6 or ES6 as you may see some places). Javascript was originally made to run exclusively in the web browser, but now Node.js has made it possible to run Javascript on the server as a general purpose programming language like Python or Ruby.