Posts by Larissa Araujo • 26 points
6 posts
-
0
votes2
answers560
viewsA: Javascript - Splitting into an array
Hello, try using this code and pay attention to my comments! Good studies! function buscarDivisivelPor(array, num) { for(var i=0; i<=array.length;i++){ if (array[i] % num == 0 && array[i]…
-
0
votes3
answers67
viewsA: I’m having trouble developing my code
You must add up the number of months, that is, the positions of the array. By placing "+ listings[i]" you are adding up the content value and not the position. var listaDeGanhos = [10, 30, -10, -5,…
javascriptanswered Larissa Araujo 26 -
-1
votes1
answer119
viewsQ: Javascript: Problems running a function. How to improve code?
Hello, I am doing an introductory Javascript course and, although I can print the desired result of the exercise, the platform does not recognize my code. I would like you to help me improve the…
-
-1
votes1
answer542
viewsQ: How to know how many times a word repeats in the array and,from the return of a function that calculates this,do new calculations?(JS)
I need to do a function that returns how many times the car board appears in the array and use this return in another function to determine a calculation. That’s my code and it’s printing "0" var…
-
-4
votes1
answer59
viewsQ: Function with three parameters in Javascript. Error returning "true" or "false". What to do?
I need a code that signals TRUE when the age is >= 21 years and the height >= 180 cm. The code I made is not working and I don’t know which error shows. =/ function maiorAlto(nome , idade ,…
-
-1
votes4
answers261
viewsQ: Generate 7 random dozens using javascript and loop for? How to do?
This is my code: function gerarDezenas() { var dezenas = ["d1","d2","d3","d4","d5","d6"]; for (var i = 0; i < dezenas.length; i++) { Math.random()*60 dezenas[i] = Math.round(Math.random() * 60…