Solved

How Do You Obtain Customer Information in a JavaScript Module

Question 71

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:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents