Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var user = {
- first: 'John',
- last: 'Doe',
- age: 42
- };
- // plain console log
- console.log(JSON.stringify(user, undefined, 2));
- // or with interpolation:
- console.log(`User: ${JSON.stringify(user, undefined, 2)}`);
Add Comment
Please, Sign In to add comment