Hey there,
Why does the function compact not work for me? it is a function according to the javascript documentation.
The problem is, however; if I add the brackets after it, the browser complains for some reason and it says compact is NOT a function. Also, with the function parseInt, it doesn't take brackets after it. Isn't it a function?
I thought functions should always have brackets inserted after thier names like java and php.
var drinks = ["pepsi", "coke", "juice", null];
println(drinks.compact);
Thanks.