Froquiz
Home
Quizzes
Job Tracker
Senior Challenge
Get Certified
Blog
🇬🇧
en
Sign In
Start Quiz
🇬🇧
en
Sign In
Start Quiz
Loading...
Quiz Topics
1
2
3
4
5
6
7
8
9
10
01
/ 10
What is the difference between adding a method to prototype vs defining a method inside constructor?
Auto Skip
Report Issue
A.
Both have same memory usage; no difference
B.
Inside constructor creates copy for each instance (memory inefficient); prototype is shared for all instances (efficient)
C.
Methods added to prototype are slow; chain searched on every access; inside constructor is faster
D.
Methods inside constructor are private; prototype methods are public
Previous
Next