Page 1 of 1

1. Do all methods in JavaScipt have to be defined within the class definition? Yes, they have to. No, they don’t have to

Posted: Sun May 15, 2022 12:14 pm
by answerhappygod
1. 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.
2. Is it true or false we can use regular expression to conduct
pattern matching in both PHP and JavaScript?
True
False
3. JavaScript variable and function names are
case-sensitive.
4. 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//