"obj details"
Bootstrap 4.1.1 Snippet by lavan

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/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> <p id="demo"></p> <script> function memeber(name,age,wrk,sex){ this.name=name; this.age=age; this.sex=sex; this.workdetail=wrk; } function work(tech,exp,cmynm,sal){ this.tech=tech; this.salary=sal; this.exp=exp; this.cmynm=cmynm; } var workobj=new work('ui','3','abc','20k') var lavan=new memeber('lava','24',workobj,'male'); var mom=new memeber('amma','27','','male'); console.log(lavan); console.log(mom); </script> </body> </html>

Related: See More


Questions / Comments: