Before beginning you should create account on codepen for practice.
alert(text-message) — The alert() method displays an alert box with a specified message and an OK button. // write alert(‘Ethicals Wall’) in your console or in JS section of codepen.
A prompt box is often used if you want the user to input a value before entering a page. If we store the value of user input in a variable, it will store in it as a string.
prompt(text-message, default) — The prompt() method open a input box for user with OK and cancel button // write prompt(‘Enter Your Name’)
A confirm box is often used if you want the user to verify or accept something. When a confirm box pops up, the user will have to click either “OK” or “Cancel” to proceed.
confirm(text-message) — The confirm() method is generally use to take confirmation before proceeding. // confirm(‘Are You Sure ?’)
Building Blocks of Programming Language —
Here’re some of the components or buiding blocks of a programming language.
Data Types — It use to identify the type of data, like, String, number, etc.
Variables — Variables are containers used for storing data values.
Operators — It is a special symbol used to perform operations on operands.
Expressions — An expression is any valid unit of code that resolves to a value.