next up previous
Next: Events Up: Functions Previous: Parameter Passing

Some Useful JavaScript Functions

JavaScripts has many inbuilt functions

It also has many other useful but not so obvious functions:

parseInt()
: takes in a string as parameter and returns it in integer format.,
parseFloat()
: takes a string as parameter and returns a floating point representation of it

eval()
: String versions of mathematical expressions can be passed into the function where they are evaluated and the result returned as an integer.



Dave Marshall
9/28/2001