Why is Javascript needed in HTML document?
Answers
Answer:
JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive. Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user.
Explanation:
hope this helps
HERE IS YOUR ANSWER MATE
All you need to do is put your code in the HTML document and tell the browser that it is JavaScript. … JavaScript allows you to create highly responsive interfaces that improve the user experience and provide dynamic functionality, without having to wait for the server to react and show another page. JavaScript is a text-based programming language used both on the client-side and server-side that allows you to make web pages interactive. Where HTML and CSS are languages that give structure and style to web pages, JavaScript gives web pages interactive elements that engage a user.
MARK AS BRAINLIEST