Monday, 2 March 2015

Errors and Parameters - week 4

Last Week we learnt about parameters and arrays. Parameters are intagers/strings you assign to objects you make via the newObject command. Such things include adding a specific location for multiple items, different audio files, different image files, anything goes really. Arrays are still arrays. very similar to last year. coding hasn't changed much since then. Arrays work well with for loops. I'd post pics with this but the school drives are down, so I can't get source images. remember kids, always back up your work on a USB!

Array = |_0_|_1_|_2_|_3_|_4_|_5_|_6_|_7_|_8_|
you can store data in each "cell" thinggie. starts at 0 and goes up, so if you ask for 10 array slots, it'll go 0-9.
We also learnt the difference between runtime errors and Syntax errors.Runtime means your syntax is a-ok, but an array has 5 cells and you're asking for what's in the 6th cell. Syntax means the code doesn't make sense to the computer- maybe you put newobject instead of newObject.

note to self add photos to this after network goes back up

No comments:

Post a Comment