Posts by Cmte Cardeal • 5,299 points
158 posts
-
1
votes1
answer54
viewsA: Database is not connecting!
I checked your code and made the changes that worked for me. Follow them: First, there in the prototype, do not use Arrow-Function, for the this will not reference the object QuotesDAO, but yes to…
-
0
votes1
answer22
viewsA: "Typeerror: Crud.Select_products is not a Function", I’m getting this error when trying to access a method from an exported class in Nodejs
In the Crud class, you should put the word 'Static' in the Select_product method so that you can use this method without having to instantiate the class. Would look like this: class Crud {…
-
0
votes2
answers288
viewsA: Get instance of connection
I even know what course Oce is doing, it is very good but it is a little outdated, but I can help you by informing you that at the end of the course, in the section "complement of the course" You…
-
2
votes1
answer117
viewsA: Why is the Sumary function returning Undefined?
Returns undefined because you are asking for the method sumario() return of array method forEach, and this method by default executes a callback function for each element of the array and always…
-
1
votes7
answers7167
viewsA: How to receive the CPF number and format to be without the dots and dash(Input Mask )
Creates a function that removes these characters using regexp there in Mask. For example: function somenteNumeros(cpf){ let numeros = cpf.toString().replace(/\.|-/gm,''); if(numeros.length === 11)…
-
0
votes1
answer168
viewsA: Concatenate string into javascript object
there in the console.log() put so to access the property of the object: console.log(contentMap[regiaoNome].title) done this, it will access the region in the contentMap object. for example:…
javascriptanswered Cmte Cardeal 5,299 -
0
votes1
answer221
viewsA: Ignore open modal enter key
You could try, if I’m not mistaken, to apply the 'span' keyboard event 'onkeypress' and set it so that when there is a keyboard event, nothing happens. Example: span.onkeypress = function() {…
-
3
votes1
answer401
viewsA: Empty input after submitting form
We could, when rendering the page, send an object that through a script within the engine of view, check if there are values and fill them in the equivalent field. Thus, when submitting the form and…