Introduction to JavaScript

What is a programming "Language"?

What is the "syntax" of a computer language?

It is the grammar, or rules for the language, just as English does, computer languages have similar rules, but much more limited range of expression.

Often times programmers may describe the syntax of a programming language in terms of Lego bricks. Things like statements in such languages are like bricks that can then be snapped into a language anywhere a statement would go, and in this way assembling a program can be like snapping Lego bricks together. You have many different kinds of statements, but any kind of statement can be snapped into a statement spot. When learning a computer language it may be useful to employ this kind of mindset.

For this class we will learn JavaScript aka ECMAScript. It is incorporated into almost every browser, and also stand-alone as interpreters/compilers such as node.js or "node" and SpiderMonkey or "js". One of the reasons for the choice of this language over others is that it should not disadvantage anyone moving on to CS201/CS202 which use C/C++ which are structurally similar, it is widely used in industry and so there are a large number of free online informational resources and coupled with a simple text editor and web browser, everyone already has a development environment installed on their computer, making the cost of entry into JavaScript development very low indeed.