1. Which of the following can be used to return more than one value from a function in JavaScript? Array String Integer
Posted: Sun May 15, 2022 12:31 pm
1. Which of the following can be used to return more than one
value from a function in JavaScript?
Array
String
Integer
None of the above
2. Do all methods in JavaScipt have to be defined within the
class definition?
Yes, they have to.
No, they don’t have to.
None of the above.
3. Is it true or false we can use regular expression to conduct
pattern matching in both PHP and JavaScript?
True
False
4. JavaScript variable and function names are
case-sensitive.
5. How to insert a comment that has more than one line in
JavaScript?
/*This comment has
more than one line*/
<!--This comment has
more than one line-->
//This comment has
more than one line//
value from a function in JavaScript?
Array
String
Integer
None of the above
2. Do all methods in JavaScipt have to be defined within the
class definition?
Yes, they have to.
No, they don’t have to.
None of the above.
3. Is it true or false we can use regular expression to conduct
pattern matching in both PHP and JavaScript?
True
False
4. JavaScript variable and function names are
case-sensitive.
5. How to insert a comment that has more than one line in
JavaScript?
/*This comment has
more than one line*/
<!--This comment has
more than one line-->
//This comment has
more than one line//