reading-notes-ma


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

JavaScrtipt: Expresion and Oparator and Function

Introduction

What is A script

A script is a series of instructions that a computer can follow to achieve a goal.

To write a script, you need to first state your goal and then list the tasks that need to be completed in order to achieve it.

Start with the big picture of what you want to achieve, and break that down into smaller steps.

Designing A script steps

stepscript

Expression

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

Operators

Expressions rely on things called operators; they allow programmers to create a single value from one or more values.

ArithmaticOP

Function

Functions let you group a series of statements together to perform a specific task. If different parts of a script repeat the same task, you can reuse the function (rather than repeating the same set of st atements).