Posts by Rafael • 103 points
2 posts
-
10
votes1
answer7242
viewsQ: Difference between Promise.then( sucess, error ) and Promise.then() . catch()?
Hello, I would like to clarify the difference and when to use each of the models of handling promises: obj.promessa( parametro ).then( function ( resposta ) { console.log("Resposta: " + resposta);…
-
0
votes1
answer95
viewsQ: Why does the code generate garbage at the beginning of the vector?
the following code generates an unexpected result, at the end of the loop the first positions of the vector are with stored garbage, someone can tell why this is happening, and where is the error?…