Posts by MFT • 269 points
3 posts
-
-1
votes2
answers414
viewsQ: Check if it contains characters in the string
When I use teste.length it returns me the size, but how do I check if it contains no character? For example: var teste = (como se o usuário tivesse clicado **2x** no **enter/espaço**); Soon…
-
18
votes5
answers1237
viewsQ: What is the difference between substr and substring?
I want to know the difference between alert("abc".substr(0,2)); and alert("abc".substring(0,2)); Both appear to produce "ab".
-
6
votes3
answers151
viewsQ: Check if URL contains number
I would like to check if the current URL contains numbers after the #. I don’t need to know if it contains a specific number or a quantity of numbers, I just need to know if there is any number…