Answers for "beautify console log result"

0

beautify console log result

var obj = {x: 1, y: 2, z: 3};

console.log( JSON.stringify(obj, null, 2) ); // spacing level = 2
Posted by: Guest on September-22-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language