List of global objects are.
- eval()
- escape()
- unescape()
- isNaN()
- isfinite()
eval() is used to evaluate expression, which is provided within the parenthesis. for example.
eval((2*3)+5); //output is 11
Click on the eval button and try with expression.
Click on the eval button and try with expression.
escape('informative javascript'); //output is informative%20javascript
Click on the escape button and try with value.
unescape('informative javascript'); //output is informative javascript
Click on the unescape button and try with values.
isNaN(10); this check if the specified number is not a number, the output is false because 10 is a number.
Click on the NaN button and try with values.isNaN('a'); this is not a number hence it reflects true in the output.
isfinite(2334); checks if the entered value is finite or not.output is true in this case.
Click on the Finite button and try with values.
Hope this post was informative , will get back with more posts.
No comments:
Post a Comment