why everything is object in javscript.

In javascript ,string,boolean,number,object , array and all are object

  • Pankaj Kumar Thakur
  • Pankaj Kumar Thakur
  • |
  • 13 Aug
  • |
  • 44 Views
  • |
  • 2 Answers

text limit upto 4000

  • 0

    Because it is an object-oriented language which is actually good in the sense that we can directly instantiate a class and use its object without much hassle. Everything is taken care of internally by the language.


  • 0

    An object has numbers of property  and method, In javascript every thing has property and method,for example string has propert toString and method indexOf , lastIndexOf etc .


Did Not Get The Answer? 
Contact people of Talent-Javascript directly from here

Javascript