Skip to content
Advertisement

How do I get a certain response from a certain input

Example = If the person types in 20, say that 20 was NOT the correct answer My current code that I’m trying to work with is:

JavaScript

Advertisement

Answer

Add an else and use f-strings to insert the user’s input into your response:

JavaScript
User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement