JavaScript Files Extensions - What are javascript files and how do I open a javascript file?

What are javascript files and how do I open a javascript file?

File Type Category File Format
.js JavaScript Files JavaScript File
.json JavaScript Files JavaScript Object Notation File