Sail E0 Webinar
Question
Which of the following are valid function names?i) function()ii) €()iii) .function()iv) $function()
Options:
A .  Only (ii)
B .  None of the mentioned.
C .  All of the mentioned.
D .  (iii) and (iv)
Answer: Option A


Except a) others are invalid names. According to the specified regular expression ([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*), a function name like this one is valid.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers