JavaScript Multiple choices


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

What is the correct syntax for referring to an external script called "xxx.js"?


 

 

 

 



B


Solution:-

You can place any number of scripts in an HTML document. Scripts can be placed in the <body> , or in the <head> section of an HTML page, or in both.

The right syntax for importing an external js file in the application is as follows:

<script type="text/javascript" src="pqr.js">

 




Next 5 multiple choice(s)

1

Is The external JavaScript file must contain the <script> tag?

2

Where is the correct place to insert a JavaScript?

3

What is the correct JavaScript syntax to change the content of the HTML element below?

4

 Which type is belong to javascript?

5

Which is not javascript types?

Comments