reading-notes

This Repo required for Asac labs class 2


Project maintained by ManarAbdelkarim Hosted on GitHub Pages — Theme by mattgraham

JavaScript

This is a brief of JavaScrip by Manar Abdelkarim

for more detailed informations about JavaScript view JAVASCRIPT & JQUERY by GILLES RUPPERT & JACK MOORE.

Ch01 - Intro & Script

What is a Script ?

A script is a series of instructions that a computer can follow to achieve a goal. Scripts are made up of instructions a computer can follow step-by-step.

To approach writing a script, break down your goal into a series of tasks and then work out each step needed to complete that task (a flowchart can help).

FlowChart

What is JavaScript ?

JavaScript JavaScript is one of the most popular and widely used programming languages in the world. One of the things that makes it very uniqueis that it runs right in your browser while most programming languages for the web run on the server.

JavaScript JavaScript allows you to make web pages more interactive by accessing and modifying the content, responding to what the user does, and markup used in a web page while it is being viewed in the browser.

By using JavaScript with HTML you can :

  1. Access the content of the page
  2. Modify the content of the page
  3. Program rules or instructions the browser can follow

    • You can specify a set of steps for the browser to follow (like a recipe)
  4. React to events triggered by the user or browser

Ch2 - BASIC JAVASCRIPT INSTRUCTIONS

What does expression means?

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

expressions

Types of

  1. EXPRESSIONS THAT JUST ASSIGN A VALUE TO A VARIABLE
    • var color = ‘beige’;
  2. EXPRESSIONS THAT USE TWO OR MORE VALUES TO RETURN A SINGLE VALUE
    • var area = 3 * 2;

What does operator means?

Operators are symbols that tell the compiler to perform specific mathematical or logical manipulations. In this tutorial

operator

the most commonly used operators in programming.

  1. Arithmetic
  2. Relational
  3. Bitwise
  4. Logical
  5. Assignment
  6. Increment
  7. Miscellaneous