Posts by Elias • 41 points
4 posts
-
0
votes1
answer21
viewsA: it inside the . addSuccessListener
You are giving this problem because "it" is a Documentsnapshot, you have to turn it into an object: var firebaseFirestore = FirebaseFirestore.getInstance()…
-
0
votes2
answers27
viewsA: Conditional returning error in Reactjs
Missing a parenthesis around the html {versao < 2 && ( <div> <h1 className="titulo">Clicou {versao} vezes</h1> <button onClick={alteraVersao}>acrescenta…
-
0
votes1
answer43
viewsA: how to create a function that has three parameters, but only use two of each of these parameters in python
You can do using one of the parameters being zero, and make a condition to return the result based on which parameter equals zero. def calcularTriangulo(catetoOp,catetoAdj,hipotenusa): if (catetoOp…
-
0
votes2
answers27
viewsA: I can’t do dataBinding Androidstudiokotlin
When you create an Activity, there is the option to create it together with the layout, then Binding is automatic. After creating just put id on the components of this layout and use them in the…