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