MKMohit Kumarinimohit1o1.hashnode.dev·May 9 · 6 min readThe new Keyword in JavaScriptNaya object banao, prototype connect karo, this bind karo — yeh teen kaam ek saath You've seen new. const date = new Date(); const error = new Error("Oops"); const arr = new Array(5); But what does n00
AKAshaaf Khaninashaaf.hashnode.dev·May 7 · 4 min readThe new Keyword: JavaScript’s Object FactoryIn JavaScript, creating one or two objects by hand is easy. But what happens when you need to create hundreds of "Users", "Products" or "Game Characters"? Manually typing out { name: "...", age: "..."00
AYAbhishek Yadavinterminal-thoughts.hashnode.dev·Apr 23 · 4 min readThe new Keyword in JavaScript: The Magic Behind Object CreationIn the world of JavaScript, we often need to create multiple objects that share the same structure as hundreds of "User" profiles or thousands of "Product" cards. While you could manually type out eac00
CCChetan Chauhaninchetan71.hashnode.dev·Apr 18 · 7 min readThe new Keyword in JavaScriptThe Problem new Solves Suppose you need to create multiple user objects: const user1 = { name: "Aarav", age: 25, role: "admin" }; const user2 = { name: "Priya", age: 22, role: "member" }; const user00
HSHappy singh negiinhappysinghnegi.hashnode.dev·Apr 15 · 3 min readnew keyword in javaScriptThe new keyword in javaScript is a core and important concept for interview perspective and also to understand js behaviour most of the beginner does not study the behaviour of new keyword. What does 00
JDJyoti Dwivediinjs-learn-fun.hashnode.dev·Apr 13 · 10 min readThe new Keyword in JavaScriptThe Cookie Cutter Moment 🍪 Last Diwali, my little cousin asked me to help make cookies. She handed me a star-shaped cookie cutter and said, "Make a hundred of these." I pressed the cutter into the do00
DDivakarindivakar29.hashnode.dev·Apr 11 · 4 min readThe 'new' keyword in JavaScriptIf you are a software developer or student of software then you have definitely seen 'new' keyword. I am aware of Javascript and Java both have this keyword but in this blog we are going to understand00
KSKanishka Shashiinjavasblog.hashnode.dev·Apr 4 · 4 min readThe new Keyword in JavaScriptWhen you start working with objects in JavaScript, you’ll often see the keyword new. It looks simple—but behind the scenes, it does a lot of important work. In this blog, we’ll understand: What the n00
MSManpreet Singhinmanpreet006.hashnode.dev·Mar 26 · 3 min readThe new Keyword and Constructor Functions in JavaScriptWhen learning JavaScript, we often create objects using object literals. However, when we need to create multiple objects with the same structure, JavaScript provides a better approach using construct00
JMJanardan Mondalinjanardanm.hashnode.dev·Mar 23 · 3 min readThe new Keyword in JavaScriptJavaScript give us a multiple way to create object, but one of the most important way is to use new keyword . If you have ever use constructor or classes, you have already used new keyword. But what e00