Posts by Bruno Sá • 15 points
2 posts
-
0
votes1
answer66
viewsQ: Doubt about the body of the requisition
I was doing some tests and I realized that when sending a parameter with single and double quotes, an internal error occurs. Ex: password: teste'" Error: SyntaxError: Unexpected token i in JSON at…
-
1
votes1
answer45
viewsQ: Doubt about exceptions and Try/catch blocks
I would like to know what is the "correct way" to write a Try/catch block: async function ping() { try { undefined(); return 'pong'; } catch (error) { console.log('fn ping:', error); } } async…