1. To minify a JavaScript file means to rewrite the program so that it requires fewer lines of code to perform the same actions, for example by using more efficient loops, in order to make it smaller in size for faster download.

  1. True
  2. False

2. You can specify the coordinates for a Google map object by _____.

  1. a passing the latitude and longitude in as the first and second arguments to its constructor
  2. calling itsLatLng()method, passing in the latitude as the first argument and the longitude as the second argument
  3. including a string containing the latitude and longitude as the value for the center property in the map options object literal passed into its constructor
  4. modifying either the latitude or the longitude using itssetLat()orsetLng()method

3. You can use the Device Orientation API to access properties called alpha, beta, and gamma that provide coordinates analogous to the geometric x, y, and z axes and perform calculations on them to detect and respond to changes in the orientation of a user’s device in space.

  1. True
  2. False

4. Which statement about JavaScript mouse events is correct?

  1. Themouseoverevent is similar to the mouseenter event, except that the mouseover event does not bubble.
  2. Because the browser reserves the left mouse button for context menus, you must run a function for the context menu event that returns a value of false in order to use that button.
  3. Moving the mouse pointer across an element in a web page causes themouseover event to be fired continuously, with each new pointer position triggering a new mouseover event.
  4. When a user clicks the mouse button while the cursor is over a web page, a mousedown event, a mouseup event, and then a click event are fired in rapid
    succession.

5. When you are writing JavaScript code to add a map pin to a Google map on your web page, you pass into the constructor an object literal with a label property, whose value will appear as a tooltip when a user hovers over the pin image.

  1. True
  2. False

Initiate a chat now to check with the Customer support team about JavaScript homework help. or Fill out the contact form to get a quick response via email.