JavaScript is a descriptive language that can be embedded in HTML documents. JavaScript can respond to user demand events (such as form input), so that when a user inputs a piece of information, it does not need to be sent to the server through the network for processing and then back. Instead, it can be directly The client handles events. You can also imagine that there is an executable program executing on your client (but this executable program is limited, and it has poor control over the client computer)!
JavaScript and Java are similar, but they are completely different languages! Java is an object-oriented programming language developed by Sun Microsystem. Similar to C++, it requires a variety of compilers and support files to run; but unlike C++, Java can be independent of any operating platform, so it It has developed rapidly on the basis of various operating platforms of today's Internet network. But it is a standard programming language that is much more complex than JavaScript. JavaScript is a relatively easy-to-understand functional language. JavaScript creators can pay less attention to programming skills, such as declaring all variables, classes, and methods. You also don’t have to worry about convoluted things such as public, private, or protected; more importantly, Unfortunately, it can only exist in an HTML script and can only run when loaded into a compatible browser, so many Java features are not supported in JavaScript. Today, JavaScript is divided into three categories: core, client-side, and server-side JavaScript