Given the following code snippet, what will be displayed on the web page if the user enters 4 at the prompt?

```
var myNum = prompt("Enter a number:");
var result = myNum * myNum;
document.write(result);
```


a. 44
b. 16
c. NaN
d. 8


b. 16

Computer Science & Information Technology

You might also like to view...

Most computers have a few high-speed storage areas called ____.

a. registers b. static c. CPU memory d. external memory

Computer Science & Information Technology

All of the versions of the Linux operating system are available for free.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

Match each element with the description of what it marks.

A. fieldset B. form C. field D. label E. legend

Computer Science & Information Technology

The set of rules that specify the sequence of keywords, parameters, and punctuation in a program instruction is referred to as _______.?

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology