Kids

Can

JavaScript

Functions

Functions are blocks of code that can be reused.
They can be passed unlimited variables: parameters.
Create new variable: local variable
and return 1 or 0 return values

function nameFunction(parameter1,parameter2,...)
{statement1;
statement1; ..
return value(optional)}


return breaks out of the function.

  • functionsblocks of code that can be reused when calling the function
  • anonymous functionsfunctions without a name
  • inner functionsfunctions inside another function


  • <-----Back        Next --->

    This username already exists.

    This username already exists.

    Login or register to save your work.

    User name field is empty.

    Your username needs to be at least 7 characters long.

    Your username can not contain any of the following characters: ",', <, > , < and whitespaces.

    Please enter a correct email addresss .

    This email address is not found in our database .

    Your password needs to be at least 7 characters long.

    login
    username
    password
    forgot password
    email
    register
    username
    password
    email