Want to pass your Salesforce Certified JavaScript Developer (JS-Dev-101) JAVASCRIPT-DEVELOPER-I exam in the very first attempt? Try Pass2lead! It is equally effective for both starters and IT professionals.
VCE
Which statement can a developer apply to increment the browser's navigation history without a page refresh?
A. window.history.pushState(newStateObject);
B. window.history.pushStare(newStateObject, ' ', null);
C. window.history.replaceState(newStateObject,' ', null);
D. window.history.state.push(newStateObject);
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 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;
Which three statements are true about promises ? Choose 3 answers
A. The executor of a new Promise runs automatically.
B. A Promise has a .then() method.
C. A fulfilled or rejected promise will not change states .
D. A settled promise can become resolved.
E. A pending promise can become fulfilled, settled, or rejected.