JavaScript Assignment #5

Concatenation

This assignment is an introduction to concatenation, an invaluable operation that allows you to connect together pieces of JavaScript code.

  1. Create a basic page in html.
  2. Using document.write(), display the user's browser information, screen height and width in the page.
  3. The script can only use one document.write() statement, so you must use the concatenation operator + to display the information as follows:
  4. "Your browser is [browser info here]. Your screen height is [screen height here]. Your screen width is [screen width here]."

Next assignment ... Assignment #6