New course! Every coder should learn Generative AI!
Try a free lessonQ&A Discussions
can someone tell me how to make it impossible for a user to type a 'userchoice1[x]' value that does not range from 1 - 10.
If you also know a way I can make the user input another value for the 'userchoice1[x]' variable if it is less than 1, I'll appreciate you share the knowledge with me.
please see the short code below
1 Vote
2 AnswersShare files
1 Vote
2 Answers? : are called Ternary Operators.
ex.
var = booleanExp ? ValueIfTrue : ValueIfFalse;
and that ? literally means "Asking a Question" Asking if the Boolean Expression is True.
If the Boolean Expression returned true, the Value for "True" will be assigned to the variable.
If the Boolean Expression returned false, the Value for "False" will be the one that'll be assigned to the variable instead.
I'm not asking a question, I just wanna share this to you guys 😁
18 Votes
6 AnswersJust wanted to share DevDocs
6 Votes
1 AnswerHot today
Help me plss
3 Votes
Android studio emulator
1 Votes
Return function
1 Votes
help me
0 Votes
Can anyone guide me
0 Votes
Internal vs external JS
1 Votes
Wrong?
0 Votes