Question
Which of the following are valid function names?i) function()ii) €()iii) .function()iv) $function()
Answer: Option A
Was this answer helpful ?
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 ?
Submit Solution