More specifically than that, we are talking browser-based games, interactive sites, and apps like Netflix and Uber.
2. User interaction with buttons: Allowing a user to make in-game decisions can enhance their experience when playing or using a program. For instance, buttons will sit on a web page, waiting to be clicked, and when clicked, will execute a new visual, etc.
The alert above is one way for a user to interact with web-based code. And here, the button also utilizes a user's input to display different content. This can take advantage of user interaction to make users feel more involved in the program created.
4. Projectile shooters: How about the classic top-down shooter game, where characters move around and shoot projectiles at enemies? The goal is to avoid the enemies and defeat as many as possible to add to the score!
5. Random numbers like Yahtzee!: Games use random numbers all the time, right? For instance, worlds in Minecraft are randomly generated when games are started, and in Tetris, random numbers determine the order of new pieces appearing on the board.
Said simply, in games, random numbers add challenges and originality. Other games, like Yahtzee! rely on random number generation to form the core challenge. A for loop can be used to simulate the rolling of dice and randomly generate new numbers each time.
7. Machine learning for image recognition and voice controls: Machine learning is one of the fastest growing areas in tech, and it's all about training computers to recognize things like images or sounds!