Explore what a basic JavaScript program looks like.
ππ Room link: https://tryhackme.com/room/javascriptsimpledemo
π― Learning Objectives π―
π¦ Learn about JavaScript variables
π¦ Understand how conditional statements are used
π¦ See iteration (loop) in action
π― Room Tasks: π―
π¦ Task 1: Introduction
π¦ Task 2: Variables
– What word is used to declare a variable?
– What word is used to declare a constant?
– What is the method that we call to display text on the screen?
π¦ Task 3: Prompting the User for Input
– What method is used to convert user input into a number?
π¦ Task 4: Conditional Statements
– The secret is 10. What will our program display on the screen if the user makes a guess of 15?
– The secret is 10. What will our program display on the screen if the user makes a guess of 35?
π¦ Task 5: Iterations
– What is the name of the loop that we used in this task?
– What is the name of the variable that is incremented by one when the user makes a new wrong guess?
– How is “not equal” written in JavaScript?
π¦ Task 6: Conclusion
β οΈ Educational Purpose Only
This content is for educational and authorized penetration testing purposes only. Always ensure you have permission before testing on any systems.
Don’t forget to π LIKE and π SUBSCRIBE for more cybersecurity tutorials!
#tryhackme