+ 3

[SOLVED]Why this code is not working and showing error anybody tell me what is the problem in js code please

https://code.sololearn.com/WyBwdUdG249k/?ref=app

20th Nov 2020, 1:29 PM
Ansheeta
Ansheeta - avatar
5 Respostas
+ 5
https://code.sololearn.com/W92dYLQYCylN/?ref=app Please check your html code number of things are missing like English_result is like element with id not present. please add also those things.
20th Nov 2020, 2:16 PM
Mohammed Qadir Khan
Mohammed Qadir Khan - avatar
+ 5
Ansheeta Most Welcome 👍.
20th Nov 2020, 4:01 PM
Mohammed Qadir Khan
Mohammed Qadir Khan - avatar
+ 5
Ansheeta take this your code Now it's Perfect 👍👍👍. No error is show. https://code.sololearn.com/W92dYLQYCylN/?ref=app
20th Nov 2020, 4:27 PM
Mohammed Qadir Khan
Mohammed Qadir Khan - avatar
20th Nov 2020, 4:00 PM
Ansheeta
Ansheeta - avatar
+ 1
At first glance you missed naming tm function.. function(){ 'should be like function f1() { //here I named f1 as function name.. And you missing variable declaration.. So var english_2nd.getElementById ("english_2nd").value; is also wrong. It shloud be like : var English_2nd = document.getElementById ("english_2nd").value
20th Nov 2020, 2:18 PM
Jayakrishna 🇮🇳