< Back to Tests


JavaScript Basic Test 2

1. When a user views a page containing a JavaScript program, which machine actually executes the script ?

The User's machine running a Web browser
The Web server
Google
None of the above

2. Which of the following can't be done with client-side JavaScript ?

Validating a form
Sending a form's contents by email
Storing the form's contents to a database file on the server
None of the above

3. Which of the following attribute can hold the JavaScript version ?

LANGUAGE
SCRIPT
VERSION
None of the above

4. What does the <noscript> tag do ?

Prevents scripts on the page from executing.
Enclose text to be displayed by non-JavaScript supported browsers.
Describes random property.
None of the above

5. What is the output ?
<script type="text/javascript">
     x=4+"4";
     document.write(x);
</script>

44
8
4
Error