"object"
Bootstrap 4.0.0 Snippet by lavan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <!------ Include the above in your HEAD tag ----------> <!DOCTYPE html> <html> <body> <h2>JavaScript Comparison</h2> <p>Assign 5 to x, and display the value of the comparison (x == 8):</p> <p id="demo"></p> <script> var obj={name:'lavan',age:20,gender:'male',child: {name:'lavanSon',age:2,gender:'male',name1:'lavandau',age1:1,gender1:'fe'} } var lavan= document.getElementById('demo').innerHTML=obj.child.name + "-"+obj.child.name1 </script> </body> </html>

Related: See More


Questions / Comments: