Question 1
Consider the following HTML document with script which is running at the URL
http://127.0.0.1:8000, then choose the correct output of the JSON object.
<!DOCTYPE html><html> <body>
<h2>Creating a JSON String</h2>
<p id="demo"></p>
<script> const txt = '{"name":"Balu", "age":30, "city":"New Delhi"}' const obj = JSON.parse(txt); document.getElementById("demo").innerHTML = "Hi\n" + obj.name +",\t" + obj.city + "," + obj.age*2; </script>
</body></html>