Posts by Andrei Liukin • 5 points
2 posts
-
1
votes1
answer28
viewsA: Salary adjustment calculation (according to category) with if Else only returns the first condition of 4. Javascript
Thank you all for your help! Here’s the corrected code: "" Function calculate() { var category = document.getElementsByName("categoria") var x = Number(salario.value); var novoSalario; var result =…
-
-4
votes1
answer28
viewsQ: Salary adjustment calculation (according to category) with if Else only returns the first condition of 4. Javascript
I created a Javascript code with if Else to show on the screen the readjustment of a salary according to the category of worker selected in an input type ="radio". It turns out that only the first…