Question 56

Refer to the following array:
Let arr1 = [ 1, 2, 3, 4, 5 ];

Which two lines of code result in a second array, arr2 being created such that arr2 is not a reference to arr1?
  • Question 57

    Which statement can a developer apply to increment the browser's navigation history without a page refresh?
    Which statement can a developer apply to increment the browser's navigation history without a page refresh?
  • Question 58

    is below:
    <input type="file" onchange="previewFile()">
    <img src="" height="200" alt="Image Preview..."/>
    The JavaScript portion is:
    01 function previewFile(){
    02 const preview = document.querySelector('img');
    03 const file = document.querySelector('input[type=file]').files[0];
    04 //line 4 code
    05 reader.addEventListener("load", () => {
    06 preview.src = reader.result;
    07 },false);
    08 //line 8 code
    09 }
    In lines 04 and 08, which code allows the user to select an image from their local computer , and to display the image in the browser?
  • Question 59

    Given the expressions var1 and var2, what are two valid ways to return the concatenation of the two expressions and ensure it is string? Choose 2 answers
  • Question 60

    Which two console logs output NaN?
    Choose 2 answers | |