Posts by Yan Silva • 35 points
5 posts
-
-1
votes1
answer72
viewsQ: Error loading localhost
When running my React Native code in the Xcode simulator, it returns some error in localhost. But I didn’t touch the code, I just created the project and ran it.…
-
0
votes1
answer220
viewsQ: Error while installing React
I’m trying to install react but when I enter the command: npm install -g create-react-app it returns me an error Please help me understand why I get this error…
-
-2
votes4
answers366
viewsQ: Error with the return of a function to catch a century of a year
In a function in JS where the user spends the year as parameter and the function returns which century of this year, however my function always returns 1. function centuryFromYear(year) { if (year…
javascriptasked Yan Silva 35 -
1
votes3
answers64
viewsQ: Problem with animation in the Menu
I’m trying to create a simple menu, with an animation that when clicking on the icon the menu options appears, if click on the icons again they disappear. I only got so far, that the options appear…
-
2
votes1
answer198
viewsQ: Convert value to number returns Nan
I’m reading a book about Javascript, but in a certain part the code in the book does not work. The part is: var qtyElements = produto[i].getElementsByClassName("quantity"); var qtyText =…
javascriptasked Yan Silva 35