•
1. constructor The constructor returns the function that created the Array object’s prototype. Example: <script> const countries = [“Pakistan”, “Canada”, “USA”, “China”]; var text = countries.constructor; // text variable will returns like: function Array() { [native code] } </script> 2. concat() The concat() method is used to join (concatenates) two […]
•
JavaScript is a programming or scripting language. JavaScript is one of the core technologies of the WWW, alongside HTML and CSS. JavaScript was developed in 1965 by “Brendan Eich”. Advantages & Disadvantages of JavaScript: Every programming language has some advantages and disadvantages; like other programming languages, JavaScript has some advantages […]