Big Halloween Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: simple70

Exam JavaScript-Developer-I All Questions
Exam JavaScript-Developer-I All Questions

View all questions & answers for the JavaScript-Developer-I exam

Salesforce Developer JavaScript-Developer-I Question # 14 Topic 2 Discussion

JavaScript-Developer-I Exam Topic 2 Question 14 Discussion:
Question #: 14
Topic #: 2

A developer is working on anecommerce 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 nowbe today’s

date + 9 days.

Which code meets thisnew requirement?


A.

deliveryDate.setDate(( new Date ( )).getDate () +9);


B.

deliveryDate.setDate( Date.current () + 9);


C.

deliveryDate.date = new Date(+9) ;


D.

deliveryDate.date = Date.current () + 9;


Get Premium JavaScript-Developer-I Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.