web design week 4

Programming

Question Description

  1. What is the standard language specification that JavaScript is based on?
  2. What datatypes does JavaScript support? Is JavaScript strongly typed or loosely typed? Explain the difference.
  3. What is the value for each of the following variables after the code is executed?

    var i = "She swam " + 10 + " laps.";

    var j = 10 + "5";

    var k = 10 – "5";

    var l = 10 * "5";

    var m = Number("152");

    var n = parseInt("0 dogs");

    var b;

    if (n) {

      b = true;

    } else {

      b = false;

    }

  4. Can JavaScript code executed in the Web browser access the computer’s filesystem? Explain.

Student has agreed that all tutoring, explanations, and answers provided by the tutor will be used to help in the learning process and in accordance with Studypool's honor code & terms of service.

Final Answer

svenu563 (1)
University of Maryland

Anonymous
Just what I needed. Studypool is a lifesaver!

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4