Solved

How Do You Obtain Customer Information in a JavaScript Module

Question 69

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