Section 2
by Louis Nguyen· Module 1: Engaging with JavaScript Fundamentals

Root Folder
Not Attempted
NameProgress
JavaScript for Beginners Introduction
Not Read
Setting up environment
Not Read
Section 1
Section 2
Section 3
Module 1 Quiz
Not Attempted
Module 2: Introduction to Variables and Data Types
Not Attempted
NameProgress
Section 1
Not Read
Arithmetic Operations
Not Read
Type Conversion
Not Read
Module 3
Not Attempted
NameProgress
Section 1
Not Attempted
Section 2
Not Attempted
0 / 430 XP

Your next task will be to learn how to use  window.alert() method to display alert dialog boxes with specified messages

window.alert() is used to display alerts to users and requires their interaction to proceed. It is a part of the Windows interface and is useful for quick debugging, user notifications, or simple interactions. When alert() is called, the browser stops executing the script until the user acknowledges the alert by clicking OK.

Step-by-step guide:

  • From the index.html file in section 1, modify the body part by adjusting the script command by the following code

    <script>
     window.alert('Hello World!');
     </script>  
  • Save the file and view the changes.
  • The alert message should appear as a pop-up box.

Maggie

Discuss with Maggie
Use the power of generative AI to interact with course content

Discussion

0 comments
Loading editor ...
Remember to be polite and report any undesirable behaviour

Category

Empty

Labels

Discussion has no labels

1 participant

user avatar

Priority

Notifications

You're not receiving notifications from this thread.
Course Outline
Module 1: Engaging with JavaScript Fundamentals
Module 2: Introduction to Variables and Data Types
Module 3
Module 4
Module 5