Skip to content

Latest commit

 

History

History
52 lines (42 loc) · 1.63 KB

File metadata and controls

52 lines (42 loc) · 1.63 KB

fun

* WHAT IS A 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).

  • we ** call ** the function when we want it to make the sentences.
  • When we want the Function to be flexible, we use the parameters.
  • When we want the return something to use, we use the Return.

Declaring a function

Declaring a function

  • when we need to call function we will use the * 'name+(parameters"if there are")' *.

parameters like a var

The 'A,B,C' Of Programming

  • A
    • What is a script and how do i create one?
  • B
    • How do computers fit in with the world around them?
  • C
    • How do I write a script for a web page?

Divide the infidel problem into small problems that you can solve.

  • know what the steps! and what next.
  • Computers approach tasks differently, so your instructions must let the computer solve the task.

Operators

Operators

  • We have many Operators
    • /
    • ==
    • !=
    • !==
    • ===
    • <
    • <=
    • =

  • The priority of parentheses must be observed'()'
  • from left to right

AND , OR , not

like: (var == '1' && var < '10')

AND , OR , not