What is a constructor in programming?

746 viewsOtherTechnology

I am still trying to wrap my head around the concept I learned in class a while ago. We learned briefly about constructors in JavaScript. Can someone please ELI5? Thank you!

In: Technology

18 Answers

Anonymous 0 Comments

It’s the instructions you give to the computer about what state the object should be in when it is created. It’s like the bootstrap for a class. It’s not complicated.

You are viewing 1 out of 18 answers, click here to view all answers.