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
1. Which JavaScript function is equivalent to echo or print in PHP? document.print() document.echo() document.write() No
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
1. Which JavaScript function is equivalent to echo or print in PHP? document.print() document.echo() document.write() No
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!