Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

if/or

  1. L0L2G00D

    JavaScript Easier way to if/or?

    I am making a game in javascript, and was wondering If there was an easier way to check for multiple answers https://replit.com/@L0L2G00D/Quiz-Game#index.js answer = prompt(_Name + "?"); if(answer === 'y' || answer === 'Y' || answer === 'Yes' || answer === 'yes' || answer === 'Ye' || answer...
Back
Top Bottom