0

[SOLVED] What's wrong?

I'm trying to create a password validator. But always shows Uncaught SyntaxError: Unexpected token'}' Line: 97 https://code.sololearn.com/WS0hOODVl2nu/?ref=app

22nd Aug 2021, 3:41 AM
Anargya Prima Anubhawa
Anargya Prima Anubhawa - avatar
4 Answers
+ 2
solution of your problem is here i replace '{' with '/x7b' in line : 61 https://code.sololearn.com/WPNMqrq0fua4/?ref=app
22nd Aug 2021, 4:39 AM
SAN
SAN - avatar
22nd Aug 2021, 5:34 AM
Pariket Thakur
Pariket Thakur - avatar
- 1
SAN I still don't understand, what should I change?
22nd Aug 2021, 4:03 AM
Anargya Prima Anubhawa
Anargya Prima Anubhawa - avatar
- 1
On line 61 the problem is with semicolon try to remove it const symbols = /[$-/:-?{-~!"^_@&+#%`\[\]]/
22nd Aug 2021, 4:20 AM
Pariket Thakur
Pariket Thakur - avatar