Let’s learn about them and see how we can use them to build the password.
<!DOCTYPE html> <html> <head> <title>Password</title> </head> <body> <script> </script> </body> </html>
Here the < script > tag is inside the < body > of our page.
Sometimes we call this a < script > block.
It always ends with a semi-colon (;). Your browser runs one statement after another in the order they are written.
When we save this code and run it in our browser, this happens:
<!DOCTYPE html> <html> <head> <title>Password</title> </head> <body> <script> alert("We need a password urgently!"); //these are statements followed by semi-colons alert("Use the password GabbaGabbaHey"); //these are statements followed by semi-colons </script> </body> </html>
The statements in the code above are followed by the following code:
//these are statements followed by semi-colons
The two statements between the opening and closing < script > tags have run one after another, popping up two alert boxes with different messages inside.
CAMELCASE is the practice of joining two words together to form one word. The first word starts with a lower-case letter and the second word begins with an uppercase letter, but there is no space between them, just like the humps of a camel. An example of camelCase is sayHello.