Posts by João Marcos • 1 point
2 posts
-
-1
votes2
answers36
viewsQ: How do I check if the object has a specific name string in Reactjs?
I want to render an image only if my object has the "happy" property, so play the image I want only if this is the string. My object is an API Example: api = { type: "happy" } someFunction(){…
-
-2
votes2
answers67
viewsQ: How do I value my input to appear in a div or <p> as number. But nothing appears. When it appears it is Nan
<div class="container"> <p id="p"></p> <input type="number" id="inputsaldo" value min="0" placeholder="" maxlength="10" required> <button…
javascriptasked João Marcos 1