Tuesday, February 11, 2014

SVG and Code Academy

I finished fixing up both snowmen and I am perfectly okay with you using them as examples.
http://students.gctaa.net/~snicholakos/webgraphics/broken_snowman.svg

Code Academy
function: a set of code given a name and when called the code is executed allowing code to be repeated easily. 

function syntax: code must be contained within braces and all lines of code end with a semicolon.

parameters: the input for a function. It is called with the function and determines the output.
function call: to call a function, write its name with a parameter listed afterwards and it will run the code within the function
D.R.Y.: Don't Repeat Yourself. Use functions when possible to limit repetition.
return statement: allows a value to be used for a later use.
scope of a variable: variables can either be specific to a function or used throughout all the code
var in variable scope: var can be used to specify when a local or global variable should be used

1 comment:

  1. I'm going to add one important vocabulary word that Code Academy for some reason is leaving out:

    argument: the value sent to a function parameter when the function is called.

    ReplyDelete