Page 1 of 1

1. Which JavaScript function is equivalent to echo or print in PHP? document.print() document.echo() document.write() No

Posted: Sun May 15, 2022 12:29 pm
by answerhappygod
1. Which JavaScript function is equivalent to echo or print in
PHP?
document.print()
document.echo()
document.write()
None of the above
2. Which of the following is NOT a valid JavaScript
variable?
_string
4Counting
Greeting
$variable
None of the above
3. Is the following JavaScript code valid?
n=’12345’;
n=25;
Yes, it is.
No, it is not.
Cannot determine
4. Which keyword do you use to define a JavaScript variable of a
local scope?
var
variable
local
static
5. When a JavaScript function is defined as “function
displayItems()”, can we call it with “displayItems(1, 2, 3,
4)”?
Yes
No