On paper, specify JavaScript assignment statements that would embed the following lines of text in a page division named outputDiv. Then, verify that your statements work associating each statement with the ONCLICK attribute of a button.

The announcer screamed "Cubs win! Cubs win!"

The oath began as "I, 'state your name' swear to uphold..."

The oath began as "I, "state your name" swear to uphold..."


```
document.getElementById('outputDiv').innerHTML=
'The announcer screamed \'\'Cubs win! Cubs win!\'\' ';

document.getElementById('outputDiv').innerHTML=
'The oath began as \'\'I, \'state your name\' swear to ' +
'uphold...\'\' ';

document.getElementById('outputDiv').innerHTML=
'The oath began as \'\'I, \'\'state your name\'\' swear to ' +
'uphold...\'\' ';
```

Computer Science & Information Technology

You might also like to view...

____ changes picture color into black, white, and shades of gray.

A. Blackscale B. Grayscale C. Whitescale D. Colorscale

Computer Science & Information Technology

Which of the following Option buttons gives options for filling cells following a fill operation?

A. Auto Fill Options B. AutoCorrect Options C. Insert Options D. Paste Options

Computer Science & Information Technology

The code to set the desired year in the calendar, given a calendar object named c, is ____________________.

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

Computer Science & Information Technology

In some markets a few top performers receive a disproportionate share of the rewards. Frank and Cook call this phenomenon

a. capitalism. b. inevitable. c. liberalism. d. socialism. e. the winner-take-all effect.

Computer Science & Information Technology