Variables and Functions

What is a passing parameter?

Function:

Reused-able code

have specific function

Parameter:

Value inside function/()

Passing Parameter:

Value inside ()

EX: function love(2,6){

 c=a+b;

return c;

}

Function is the whole thing, parameters is 2 and 6

What’s variable and value?

Variable is name, but value is the true meaning of thing, the data.

Example:

Apple = Chicken

Meaning that the ‘Apple’ is just name, people called chicken ‘Apple’. Meaning that its name is apple but it’s actually chicken.

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s