showing results for - "object values template literal js"
Felix
15 Oct 2020
1const obj = {A : 1, B : 2, C : 3, D : 4}
2console.log(`object in Template literals ${JSON.stringify(obj)}`);
3console.log('object in Template literals ',obj);//best practice
4
5console.log(typeof JSON.stringify(obj)); // string (Danger)
6
7