Question 86

A Digital Developer suspects a logical error in a script. Which action will help locate the error?
  • Question 87

    A developer is asked to improve the maintainability of a page by reducing its code repetition.
    What are two techniques the developer should implement to achieve this?
    Choose 2 answers.
  • Question 88

    A Digital Developer is working on a project to convert a pipeline to a JavaScript controller. UX Studio has a functioning pipeline debugger configured for the site. Assume the Developer will add a breakpoint to the controller when it is written.
    What must be done in order to use the debugger with the new controller when it is written?
  • Question 89

    Which two items are appropriate content of custom logs implemented at checkout?
    Choose 2 answers:
  • Question 90

    A Newsletter controller contains the following route:
    Server.post('Subscribe', function (req,res,next){
    var newsletterForm = server.forms.getForm('newsletter');var CustomObjectMgr = require('dw/object/CustomObjectMgr'); if(newsletterForm.valid){ try{ var CustomObject = CustomObjectMgr.createCustomObejct('NewsletterSubscription', newsletterform.email.value); CustomObject.custom.firstName = newsletterForm.fname.value; CustomObject.custom.lastName = newsletterForm.lname.value;-
    } catch(e){
    //Catch error here
    }
    }
    next();
    });
    Assuming the Custom Object metadata exists, why does this route fail to render the newsletter template when the subscription form is correctly submitted?