Home >Web Front-end >Front-end Q&A >What does javascript suffix mean?

What does javascript suffix mean?

PHPz
PHPzOriginal
2023-04-24 10:47:303052browse

The suffix of JavaScript is ".js". This suffix actually means that this file is a JavaScript source code file. JavaScript is a scripting language that is commonly used in web front-end development. Together with HTML and CSS, it forms the basis of modern web pages.

The JavaScript suffix was set by Brendan Eich, the creator of JavaScript. When he created the JavaScript language in 1995, he chose .js as the extension for script files to distinguish JavaScript files from other types of files.

The existence of JavaScript suffix facilitates developers and browsers to identify and interpret JavaScript codes when loading web pages to achieve various dynamic interactive effects on web pages. Because of the open source nature of JavaScript, JavaScript file suffixes have also become a symbol shared by a large number of developers, which facilitates code sharing and dissemination.

It should also be noted that although the suffix of the JavaScript file is .js, when referencing the JavaScript file in the HTML page, you need to use the