how to display objects from an array in javascipt
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>JavaScript print array</title>
</head>
<body>
<pre id="arrPrint"></pre>
<script>
let arr = [{name: "Jack"}, {name: "John"}, {name: "James"}];
document.getElementById("arrPrint").innerHTML = JSON.stringify(arr, null, 2);
</script>
</body>
</html>