Posts by jcvts • 86 points
1 post
-
7
votes5
answers145
viewsA: Check if a string is composed only of '0' and '1'
Well, I don’t have much experience with Javascript, but I believe that the simplest way to solve this would be to use regular expressions (Regex) to verify the value entered, as referred by Luiz…