Page 120 - CodePilot V5.0 C8
P. 120
REWIND RUN
« JavaScript is a popular scripting language that enhances web page interactivity.
« JavaScript is a versatile programming language that enables dynamic features on websites.
« The <SCRIPT> tag is used to embed JavaScript code or link to external JavaScript files.
« A block of code created specifically to carry out a specific task is referred to as a JavaScript function.
LEARNING LOGS
A. Tick ( ) the correct option.
1. Choose the language category JavaScript is classified under.
(i) Programming language (ii) Scripting language
(iii) Query language (iv) Markup language
2. Select the invalid keyword in JavaScript.
(i) null (ii) enum
(iii) import (iv) print
3. Identify the result of document.write(x == 8) when let x -= 8.
(i) 8 (ii) True
(iii) False (iv) None of these
4. Choose the file extension in which you can save a JavaScript file.
(i) .js (ii) .py
(iii) .html (iv) .java
5. Which operator is used to invert the value of a Boolean condition?
(i) AND (ii) OR
(iii) NOT (iv) IF
B. Write ‘T’ for true and ‘F’ for false.
1. = and == operators have the same functionality.
2. We cannot integrate the JavaScript code within the HTML web page directly.
118
CodePilot (V5.0)-VIII

