Posts by Thomas Alves • 39 points
4 posts
-
0
votes1
answer216
viewsQ: True return function returns false in a Vue expression
I created a method that serves to take the difference of a certain date with today’s date. With the code I put, it returns true. But when I use it within a computed value, it returns undefined. And…
-
0
votes1
answer159
viewsQ: Vue component is not pushing in props
I’m creating a simple task list with Vue.js, doing so using separate components in files. One of the components has the function of adding an object to an array, which is a props, but there is the…
-
2
votes1
answer33
viewsQ: Why is this little green ball able to rewind, in animation, using this conditional?
I have a javascript code that makes an animation of a green ball that moves until it reaches the limit of the width of the window, causing the ball to return, do the opposite, until it reaches the…
-
1
votes2
answers103
viewsQ: Why does the number variable return an empty string when declaring it outside a function
When the function printNumero is called, the local variable numero does what I wanted, returns the value that was inserted in the input. But the variable numero global returns an empty string, even…