showing results for - "javascript var dump"
Naima
16 Nov 2017
1//common way
2console.log(object);
3
4//for non-browser srcipts
5console.log( JSON.stringify(object, null, 2) ); // spacing level = 2
Chahine
14 Oct 2018
1function dump(obj) {
2 var out = '';
3 for (var i in obj) {
4 out += i + ": " + obj[i] + "\n";
5 }
6alert(out);
7}
Leia
08 Jul 2020
1dump(field.choices[i]);