C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Create an instance of object in javascript
WhatsApp
Mahak Gupta
5y
4.5
k
0
0
25
Blog
Introduction
Here we take an example in which we create an instance of an object in javascript.
<html>
<body>
<script type=
"text/javascript"
>
x = { Fname:
"Mahak"
, Lname:
"Garg"
}
document.write(
"My Name is "
+ x.Fname +
" "
+ x.Lname);
</script>
</body>
</html>
Output:
Create an instance of object in javascript
People also reading
Membership not found