Posts by kathryn • 47 points
4 posts
-
3
votes4
answers1016
viewsQ: Exchanging elements in arrays with a function. How to do?
I apologize in advance for the beginner’s doubt, but I’m stuck in the next problem. The exercise asks us to declare a function called "replace" that has two arrays (arrayA, arrayB) and then remove…
javascriptasked kathryn 47 -
1
votes3
answers1442
viewsQ: Print 5 times number 5 on screen
I am practicing a javascript exercise that asks us to use the "for" function to repeat 5 times the number 5 on the screen. But they claim the code is wrong and I don’t know what I’m doing wrong:…
javascriptasked kathryn 47 -
0
votes0
answers57
viewsQ: What does it mean that my code makes "comparisons against strings"?
The exercise calls for the following: Set the function Hipster which takes as a parameter: a person’s profession (string), nationality (string) and the number of kilometers he walks per day…
javascriptasked kathryn 47 -
0
votes1
answer89
viewsQ: Compare numbers, return with the highest value
Ok, basically I need to create a simple javascript function where I enter two values, and it returns the largest of them. My solution was: function eMaior(A,B) { if (A > B) {return: A} else…
javascriptasked kathryn 47