View on GitHub

reading-note

Read: 06 - Programming with JavaScript

What is JavaScript ?

JavaScript allows you to make web pages more interactiv by accessing and modifying the content and marckup used in a web page while it is begin viewed in the browser

js

How js makes web pages more interactive

JavaScript includes following categories of operators.

EXPRESSIONS

An expression evaluates into (results in) a single value. Broadly speaking there are two types of expressions.

OPERATORS

js

Functions

Functions are one of the fundamental building blocks in JavaScript. A function in JavaScript is similar to a procedure—a set of statements that performs a task or calculates a value, but for a procedure to qualify as a function, it should take some input and return an output where there is some obvious relationship between the input and the output. To use a function, you must define it somewhere in the scope from which you wish to call it.