FINAL Review!!!!!!!!!!!!!!! Things you need to know: variables ifs loops array mostly FUNCTIONS function of 3 varieties the ones the do a job and die this that need inputs the ones that give outputs Examples function cat(){ alert("*knocks stuff over*"); alert("boop"); } cat(); cat(); function dog(x,y){ doggyx = x; doggyy = y; alert("Wooof"); } dog(100, 450); function parrotSqwak(){ return "something clever only a human would say"; } alert("Everyonelisten up : " + parrotSqwak() ); function gradeAvg(m1, m2, m3,m4){ var res = 0; res = m1 + m2 + m3 + m4; return res / 4; } //84.3 var myMark = gradeAvg(82, 72, 90, 56); var betterMark = gradeAvg(82, 72, 90, 56) + 10; function paint(){ gradeAvg(82, 72, 90, 56) // makes no sense, theres nothing to catch the returned value alert(m1); //m1 doesnt exist after the function runs for(var i=0; i < 10; i++){ //i only exists for this loop } for(var i=0; i < 10; i++){// this 'i' is a different 'i' from that last loop, just has the same name } }