JavaScript Multiple choices


Total available count: 50
Subject - JavaScript Frameworks
Subsubject - JavaScript

Inside which HTML element do we put the JavaScript?


 

 

 

 



A


Solution:-

The <script> tag is used to contain javascript code.

Definition and Usage:-
The <script> tag is used to embed a client-side script (JavaScript). The <script> element either contains scripting statements, or it points to an external script file through the src attribute. Common uses for JavaScript are image manipulation, form validation, and dynamic changes of content.

Example:-
Write "Hello Slightbook course of JavaScript!" with JavaScript

<script>
document.getElementById("demo").innerHTML = "Hello Slightbook course of JavaScript!";
</script>

 




Next 1 multiple choice(s)

1

JavaScript is a

Comments