Posts by Lavarda • 21 points
6 posts
-
1
votes2
answers58
viewsA: I made a game in javascript, but I wanted to know how to add Pause and start by pressing only one key
Good afternoon Anderson, all right? For your problem first of all you need to find the key code you will press, can use this site to find this: Key Code Info After that it is necessary to place a…
javascriptanswered Lavarda 21 -
0
votes2
answers52
viewsA: How to use reduce() on a map() with data coming from the Firestore
Opa quiet friend? So I guess you’re trying to use the method reduce() in a single value, using it within your map. To be able to use the reduce() you have to use in a list, follow the example below.…
-
-1
votes4
answers7488
viewsA: How to change the database name in Mysql Workbench 8.0 using ALTER DATABASE?
Good afternoon, by command I do not know, but has to change the name of the database by phpMyAdmin going to Login -> Schemas -> Operations -> Rename Database. Hugs.
-
0
votes3
answers3540
viewsA: How to receive an array and return another
Another way to solve this is by using the Math.sign() javascript, would be a resolution similar to our friend above. Follow the example: let valores = [1,2,0,-1]; let positivos = []; let negativos =…
-
1
votes5
answers153
viewsA: Call the Java method
First this is within a class right? Let’s assume that this class is public class Telefone{} After you have defined the methods of this class, you should instantiate it in your main class or your…
-
0
votes2
answers4864
viewsA: Request React Activate with Aces
Good morning friend, I believe your problem is in the asynchronous order, try to use async in your function and use await, as in the example below: componentDidMount = async () => { const token =…