Multiple Choice
How do you obtain customer information in a JavaScript module?
A) Magento does not expose customer information in JavaScript for security reasons
B) By sending an AJAX request to the url: /customer/account/info/?json=1
C) By using customerData.get('customer') call, where customerData is an instance of Magento_Customer/js/customer-data
D) Customer information is available in localStorage and be retrieved by calling window.localStorage.getItem('customer')
Correct Answer:

Verified
Correct Answer:
Verified
Q64: How can you access the select query
Q65: In a code review of a merchant's
Q66: You are building a report using complex
Q67: What is the relationship between products and
Q68: You have created a new section in
Q70: Which two ways does Magento persist category
Q71: \Magento\Sales\Model\Api\OrderRepositoryInterface::getList accepts a SearchCriteriaInterface to filter and
Q72: Your module, MyCompany_MyModule, is using the frontName
Q73: In layout files you can change an
Q74: You are developing a module MyCompany_StoreInfo to