Programming with JavaScript


Programming with JavaScript

This a summary of what I have learned during the class and by reading this tutorial.

Expressions and Operators

 

The programming operation with JavaScript requires some tools to be done:

  • Operators
  • Expression

 

 

  • Operators An operator performs some operation on single or multiple operands (data value) and produces a result. there are many types of Operators:
    1. Assignment operators
    2. Comparison operators
    3. Arithmetic operators
    4. Bitwise operators
    5. Logical operators
    6. String operators
    7. Conditional (ternary) operator
    8. Comma operator
    9. Unary operators
    10. Relational operators

 

  • Expression an expression is a snippet of code that evaluates to a value.
    1. the Expression
    2. Arithmetic
    3. String
    4. Logical
    5. Primary expressions
    6. Left-hand-side expressions

 

Functions

A JavaScript function is a block of code we type within the main js code to perform a particular task. and it can be called anywhere in the code by its assigned name.

A function element are:

function name(parametes) {

 return //task//;

 }

 

 

Get back to EMAM’S HOMEPAGE

I have created this page as a part of my project using Github, Please visit my profile, I will be more than happy to hear from you all.                       © Emam Shararah 2021