<HTML>
<body>
</body>
<script>
let user = {
name: "John Smith",
age: 35
};
let stringified =JSON.stringify(user);
// alert(stringified);
let parsed = JSON.parse(stringified);
// alert(parsed.name);
// alert(parsed.age);
</script>
</HTML>
<!--
let solution = JSON.parse(JSON.stringify(user));
-->
<body>
</body>
<script>
let user = {
name: "John Smith",
age: 35
};
let stringified =JSON.stringify(user);
// alert(stringified);
let parsed = JSON.parse(stringified);
// alert(parsed.name);
// alert(parsed.age);
</script>
</HTML>
<!--
let solution = JSON.parse(JSON.stringify(user));
-->
댓글
댓글 쓰기