Posts by Elvis Souza • 1 point
2 posts
-
-1
votes1
answer29
viewsQ: The function is not returning the variable in html
<script>function calcular() { var d1 = document.getElementById('diametro1').value; var d2 = document.getElementById('diametro2').value; var w1 = 42,305 / Math.sqrt(d1) ; var w2 = 76,63 /…
javascriptasked Elvis Souza 1 -
-2
votes1
answer44
viewsQ: Problem trying to perform a calculation
I try to print the W variable on the screen, but I think the js code has some error that does not allow it. How to fix? Javascript function calcular() { var p =…