How can I print in the console, native properties and methods? Like for example, I have an array and I want to know all native functions like: sort(), shift(), pop()... etc, without need to research the JS library. And the console must return these methods.
2 Answers
Yes, you can press F12, go to console and type in for example console.log(Array.prototype)
Same you can do with String, Object, Number
3 Comments
claudiopb
There is any way? without need to attach the js code to a HTML file? Because I like to study js files only, running in the shell attaching in package,json using yarn start
Ilijanovic
you want only to use js without the need of an html file and browser? then just install node.js on your computer. after you installed it , i would strongly recommend, to use visual studio code. then you open some folder, create an file for example
test.js and then you open the terminal, or with the key CTRL + SHIFT + Ö in my case then you can simply write node test.js and it will run your js code in a shellIlijanovic
I hope you mean something like this: code.visualstudio.com/docs/nodejs/nodejs-tutorial but first you will need to install node.js from nodejs.org/en
