intro_to_javascript Introduction to JavaScript/EcmaScript (ES6+)
For context visit this link: https://clvrclvr.com/content/?p=181
Get the latest code here: https://github.com/kevinelong/intro_to_javascript
with JavaScript!!!
Programming is providing instructions (like a cooking recipe) for computers to execute (like a chef).
We provide computers with instructions by creating plain-text-files (e.g. my_code.txt) in a text editor like Windows’ Notepad or Mackintosh TextEdit.
In this text file we add lines of code called statements. By default these statements are executed top to bottom.
Statements are composed using a programming language such as JavaScript that defines reserved key-words that have special meaning in the language, and also literal values like numbers and text content, additionally we also use special symbols including the ones for basic arithmetic.
If you already know how to give accurate “idiot-proof” directions in any area of your expertise then you are well on your way to learning to program.
Programmers use both common and uncommon keys on the keyboard. In both cases that have special names for the key as used in the programming context.
Please use the following table to update your keyboarding terminology.
| is known as the "pipe", "bar", or logical "OR" (especially when in a pair; e.g. "||").
+ is known as "plus" and is used as the arithmetic addition operator.
- is known as the "dash" or "minus-sign" and is used as the arithmetic subtraction operator.
* is known as the "star" or "splat", asterisk. It may represent multiplication, or a wild-card.
/ is known as "slash" or "whack". It is used for arithmetic division, found on the "?" key.
\ is known as the "back-slash" and it is usually found on the same key as the "|" (vertical-bar).
{ is known as a the opening "curly" which is short for curly-brace/bracket.
} is known as a the closing "curly" which is short for curly-brace/bracket.
` is known as the "back-tick" or "grave-accent". Usually found on the top left of your keyboard.
~ is known as "tilde" (Till-Duh) and is found above "`" (back-tick) and often means HOME.
! is known as the "bang" (as in Bang!!!) and sometimes mean a logical NOT.
# is known as the "hash" and is usually accessed as SHIFT-3
& is known as the "and" or ampersand, or the logical "AND" (especially when in a pair e.g. "&&").
^ is known as the "caret" and is sometimes used as the arithmetic power symbol, or to indicate position.