JavaScript-Developer-I Exam Question 31

Refer to the HTML below:
<p> The current status of an order: < span> id='' status '> In progress < /span> < /p> Which JavaScript Statement changes the text 'In Progress' to Completed'?
  • JavaScript-Developer-I Exam Question 32

    Refer to the code below:
    Function changeValue(obj) {
    Obj.value = obj.value/2;
    }
    Const objA = (value: 10);
    Const objB = objA;
    changeValue(objB);
    Const result = objA.value;
    What is the value of result after the code executes?
  • JavaScript-Developer-I Exam Question 33

    A developer is working on an ecommerce website where the delivery date is dynamically calculated based on the current day. The code line below is responsible for this calculation.
    Const deliveryDate = new Date ();
    Due to changes in the business requirements, the delivery date must now be today's date + 9 days.
    Which code meets this new requirement?
  • JavaScript-Developer-I Exam Question 34

    Given HTML below:
    <div>
    <div id ="row-uc"> Universal Container</div>
    <div id ="row-aa">Applied Shipping</div>
    <div id ="row-bt"> Burlington Textiles </div>
    </div>
    Which statement adds the priority = account CSS class to the universal Containers row ?
  • JavaScript-Developer-I Exam Question 35

    Refer to the code below:
    new Promise((resolve, reject) => {
    const fraction = Math.random();
    if( fraction >0.5) reject("fraction > 0.5, " + fraction);
    resolve(fraction);
    })
    .then(() =>console.log("resolved"))
    .catch((error) => console.error(error))
    .finally(() => console.log(" when am I called?"));

    When does Promise.finally on line 08 get called?