Sunday, May 17, 2020
70+ JavaScript Interview Questions To Hire Or Get Hired With - Algrim.co
70+ JavaScript Interview Questions To Hire Or Get Hired With - Algrim.co ()); /script /body /html 72. Name the distinct types of Error Name Property. Range Error: This error occurs when a number outside the range is used. Syntax Error: This error occurs when we use the incorrect syntax. Reference Error: This error occurs if used an undeclared variable Eval Error: This error arises due to the error in eval (). New JavaScript version doesnât have this error Type Error: Occurs, when the value used, is outside the range of types used URI Error: This error arises due to the usage of illegal characters. 73. What are some of the advantages of using External JavaScript? Separation of Code is done. Code Maintainability is Easy. Performance is better. 74. What is the difference between test () and exec () methods? Both of these tests are RegExp expression methods. When you use test (), a string of a given pattern is searched and if there is a matching text present in the string, the test returns a Boolean value âtrueâ and else it returns âfalseâ. In exec (), a string of a given pattern is searched and if there is a matching text found in the pattern, then the pattern itself is returned and else returns a null value.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.