Posts by Stéphanie Verissimo • 347 points
9 posts
-
-2
votes1
answer44
viewsQ: There is something wrong with creating an React project
When trying to create a new React project the action is not completed. I will attach prints with errors and versions. I have tested many commands I saw on the internet, but none solved my problem. I…
-
0
votes7
answers4295
viewsA: What does it mean Does the solution make comparisons against strings in the following code? JS
I am redoing the exercise and found this solution: var diaCerto = "domingo" var diaDeSemana = diaCerto if(diaDeSemana == diaCerto){ console.log("Hoje é dia de futebol!!!") }…
-
3
votes10
answers5627
viewsA: Function that returns if one can go to the database with true/false?
The resolution was thus: function possoIrAoBanco( diaDaSemana, horaAtual){ var diasFuncionamentoBanco = ('segunda-feira', 'terça-feira', 'quarta-feira','quinta-feira', 'sexta-feira'); return 9…
-
1
votes10
answers5627
viewsQ: Function that returns if one can go to the database with true/false?
EXERCISE: Set the function possibleIrAoBanco, take two parameters, the first is diaDaSemana (string) and the second horaAtual(number), the function must return true, only if the database is open.…
-
2
votes7
answers4295
viewsQ: What does it mean Does the solution make comparisons against strings in the following code? JS
The statement of the financial year is: Declare the dayFew you receive a "Sunday" string. Then implement a conditional using if that compares diaDemana is equal to "Sunday", if true print a string…
-
2
votes3
answers4717
viewsA: I need to write a suit functionDeruco, that given a suit, returns a list of strings, one for each card of this suit following the cards of the truco
Excluding "Jack", "Queen", "King", "Ace" the code worked! function naipeDeTruco(naipe) { return ["1", "2", "3", "4", "5", "6", "7", "10", "11", "12"].map(function(tipo) { return [tipo, naipe].join('…
-
3
votes3
answers4717
viewsQ: I need to write a suit functionDeruco, that given a suit, returns a list of strings, one for each card of this suit following the cards of the truco
TIP: The cards include all numbers except cards 8 and 9. The reasoning I had at first was to create several arrays each with the suit name (spades, clubs, diamonds and hearts) and then use the FOR…
-
4
votes5
answers3692
viewsQ: create "contain" function that says if an array contains a certain element and returns true
I tried several ways with the indexOf (is a requirement of the issue use), but I’m having a lot of difficulty because I’m learning everything over the internet. The code I’m trying to use does the…
-
4
votes5
answers3418
viewsQ: Check the amount of negative elements in a JS array
I am initiating Javascript studies and I come across a question where I need to identify negative elements in an array and return the amount of these numbers. Remembering that there may be empty,…