Console Log, Stringify One Record
<html><head>
<title> Console Log, Stringify One Record </title>
<script src="record.js"></script>
</head>
<body>
<script>
console.log(JSON.stringify(myRecord[1]));
</script>
<div id="theJsonOutput"></div>
</body>
</html>
<title> Console Log, Stringify One Record </title>
<script src="record.js"></script>
</head>
<body>
<script>
console.log(JSON.stringify(myRecord[1]));
</script>
<div id="theJsonOutput"></div>
</body>
</html>
//Save as record.js
var myRecord = [
{
name: "Key",
weight: 140
},
{
name: "Donald",
weight: 160
}
];
var myRecord = [
{
name: "Key",
weight: 140
},
{
name: "Donald",
weight: 160
}
];