If the "default" exercises seem too much, try these. Ask the instructor for help!
Do a JavaScript function, which sums two variables and returns the sum. Try what happens with the following parameters: 1, 0.1, "a", "". A convenient way to test is alert(sum(1,2)). Try also to call the function with Firebug.
Do a JavaScript function, which calculates the average of values inside the table given as parameter.
table.length
JavaScript table can do a lot!
var table = []
.push()
.pop()
Do a PHP function, which sums two variables and returns the sum. Try what happens with the following parameters: 1, 0.1, "a", "". Test the function with echo sum(a,b);
Do a PHP function, which calculates the average of values inside the table given as parameter.