SoFunction
Updated on 2025-03-10

What is the file with the extension js? Original

Many friends have just started to get in touch with the Internet and don’t understand what file it has with the suffix js. In fact, this file with the extension .js is a javascript file. Why do you need to use it?<script src=""></script>In fact, we often call files in the process of making web pages, because if the js file is written into the web page, it is not conducive to our repeated modifications. If we need to modify the js file in the future, we can directly modify the js file without changing the entire web page. Now our websites generate static html. If we want to modify thousands of static pages, whether it is to replace or save website space, it is a good choice.

It should be noted that our js file can only contain js syntax, not simple text. I hope that brothers who are just starting to contact this aspect will join more