PrestaShop 101

  1. Home
  2. Developer Tips
  3. How to view an array structure in javascript with alert()?

How to view an array structure in javascript with alert()?

  • Created July 27, 2015
  • Author Presta101
  • Category Developer Tips

Firefox and Google Chrome have built-in a JSON object, so you can simply use:

alert(JSON.stringify(myArray))

references:

http://stackoverflow.com/questions/3006644/how-can-i-view-array-structure-in-javascript-with-alert

Was this article helpful?

Yes No

Related Articles

  • Where is the database connection file config/settings.php in PrestaShop 1.7
  • How to setup cron job in cPanel to execute a URL
  • [PrestaShop Bug] Cannot Edit Product – Save Does Not Work
  • How to get all customers who have never bought anything in PrestaShop
  • How to get PrestaShop template page name with php
  • How to get PrestaShop controller page name with php
© Copyright PrestaShop Developer.