Posts by Renan Lima • 44 points
9 posts
-
1
votes2
answers52
viewsA: Calculation of discount in Javascript
function ganharDesconto(...products) { const total = products.reduce((a, b) => a + b, 0) if (total > 200) { return `Você recebeu desconto e o valor ficou: ${total * 0.9}` }…
javascriptanswered Renan Lima 44 -
0
votes1
answer150
viewsA: How to work with anchors at Reacjs
Adventist speaking! Dude, Link on Reactjs has this property, but I’ve never set it up, since it’s designed just for you to navigate inside your app. But you can take a look at Docs…
reactanswered Renan Lima 44 -
0
votes1
answer109
viewsA: How to change the color of VS Code text?
you need to install a Theme of your preference, Open up the Vscode, Click on the 4th icon (where you have the comics) and look for themes! Ex for you to search: "Atom One Dark Theme". Another cool…
-
0
votes1
answer26
viewsA: I can’t log out on Firebase
Hi, First careful when doing that <button onclick="logout()">logout</button> Why? Because when javascript is reading the code that comes from LEFT TO RIGHT AND TOP TO BOTTOM, it will see…
-
1
votes2
answers42
viewsA: How can I draw an X number without repeating it in JS?
Fala Miguel! You will make a loop, with the total numbers you will want. You will create an array to add the non-repeated numbers randomly. First you will generate a random number within the loop.…
javascriptanswered Renan Lima 44 -
0
votes3
answers33
viewsA: Why image is not adjusted column in bootstrap
Fala João! Thing one, your css will never get IMG because there is no HTML structure that has .thumbnail > img <div class="about-image"> <img src="./teste.jpg" alt="teste">…
-
0
votes0
answers13
viewsQ: Why can’t the return inside the foreach understand the response type of a function of one of a class? Typescript
I can access through the for.. of, But through the foreach I can’t, the function can’t understand that inside the foreach is returning a function that is of type Ihttpresponse. interface…
-
0
votes0
answers102
viewsQ: Working with multiple javascript/jquery arrays
Speak person, basically I’m getting 2 array per function parameters and that both NOT have the same size, and I’m trying to render it in each specific select, for example: The 1st array comes an API…
-
0
votes0
answers27
viewsQ: Cwd in Grunt + Babel
Personal talk, I am using Grunt + Babel to compile my code, it turns out that my folders are organized as follows: - pasta1 - amd -src - arquivo.js - pasta2 - amd -src - arquivo.js - pasta3…