58.2k views
3 votes
Inside which html element do we put the javascript?

User Frslm
by
7.7k points

1 Answer

3 votes
It is the <script> tag. You can either put literal javascript code in between, or refer to an external .js file, using the src attribute.
User Amir Khan
by
7.0k points