COMPUTER NETWORKS AND COMMUNICATIONS
INTERNET AND WEB TECHNOLOGIES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
JavaScript Code is written inside file having extension ____
|
.jsc
|
|
.jvs
|
|
.js
|
|
.javascript
|
Explanation:
Detailed explanation-1: -To include an external JavaScript file, we can use the script tag with the attribute src . You’ve already used the src attribute when using images. The value for the src attribute should be the path to your JavaScript file. This script tag should be included between the <head> tags in your HTML document.
Detailed explanation-2: -Install the latest version of Node.js. Install an IDE/Text Editor like Visual Studio Code. In VS code, create a file > write JS code > save it with .js extension. Open up the terminal/command prompt > navigate to the file location > type node hello.js > hit enter. You will get output on the terminal.
There is 1 question to complete.