print_r() equivalent in jQuery

var my_object = new Object();
my_object["employeename"] = "Alex"; 
my_object["surname"] = "pandian";
my_object["sex"] = "M";
 
alert(data.toSource()); //Will give "({employeename:"Alex", surname:"pandian", sex:"M"})"  





print_r() equivalent in jQuery, Romel Drupal, most popular equivalent in jQuery, romel jquery, jquery romel, javascript romel, romel javascript, javascript, jquery  

//It might not work in <=IE6 

Comments

Popular posts from this blog

PHP - How to increase size of POST value in php

D8 KernelEvents constants

D8 - Attach file programmatically to a node