0

if Statement in JavaScript is not working please help

Help me the if statement in the JavaScript is not working Give me the solution please JOY Karel Málek Nikolay Nachev Mitali https://code.sololearn.com/WNQTNN7n1vLN/?ref=app

24th Dec 2020, 9:56 AM
Mohammed Azam
7 Answers
+ 1
Thanks TheWh¡teCat 🇧🇬 Sir It's working 😊
24th Dec 2020, 10:48 AM
Mohammed Azam
+ 1
Azam , I tried it (when I removed the comment) and it works. Specify more clearly what is expected to happen with if condition.
24th Dec 2020, 10:23 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
TheWh¡teCat 🇧🇬 if i press the button, the marks should get displayed in the table Based on the condition (number) "15" which is entered into the textbox
24th Dec 2020, 10:32 AM
Mohammed Azam
+ 1
Azam , all columns are filled, without Subject total.
24th Dec 2020, 10:36 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
TheWh¡teCat 🇧🇬 yes that's ok
24th Dec 2020, 10:37 AM
Mohammed Azam
+ 1
Azam , you just didn't implement it in your code. The reason is you don't have other conditions to check which will set other values for each field of the table. If statement definitely works.
24th Dec 2020, 10:43 AM
TheWh¡teCat 🇧🇬
TheWh¡teCat 🇧🇬 - avatar
+ 1
TheWh¡teCat 🇧🇬 Sir, if i enter 15 it's not showing the marks 😔
24th Dec 2020, 10:45 AM
Mohammed Azam