Page 121 - CodePilot V5.0 C8
P. 121
3. The name of variables is case sensitive in JavaScript.
4. The console.log() method is used to display messages or data in the browser’s console.
5. The prompt text is not specified as a string within the parentheses.
C. Fill in the blanks using the given hints:
1. In , code is written within the HTML web page. Hints
Web
2. are the instruction that are not executed by interpreter. Browser
3. A is a memory reference to a stored value. Variable
Confirm
4. A Box asks the user to confirm or cancel an action. Comments
JavaScript
5. A is an application program that has a graphical user interface for
displaying HTML files.
D. Answer the following questions:
1. Define functions in JavaScript.
2. Describe the function of popup boxes in JavaScript.
3. Explain the term expression.
4. What are comments?
5. Explain the difference between internal and external JavaScript.
21 st
COMPETENCY-BASED QUESTIONS Century #Critical Thinking
Skills #Technology Literacy
1. Riya is creating a form where the user must provide a valid email (emailInput) and agree to the terms
(termsCheckbox). Which operator ensures both conditions are true before submitting the form?
2. Sameer is developing a website where a pop-up asks for the user’s name and greets them
with a personalised message. Which JavaScript popup would Sameer use?
119
JavaScript for Beginners

