+ 6

can you please spot the error

there is a mistake in binary conversion of my js code. i just want to convert the text of input in binary. ps: please make it as simple as possible https://code.sololearn.com/Wvj2viUoquXI/?ref=app

4th Feb 2018, 6:16 PM
Msaligs
Msaligs - avatar
3 Respostas
+ 3
On line 8 add: document.getElementById("binary").innerHTML = "";
4th Feb 2018, 6:31 PM
Limitless
Limitless - avatar
+ 3
As @Limitless stated, just add that line anywhere in the change() function before the for loop.
4th Feb 2018, 7:01 PM
ChaoticDawg
ChaoticDawg - avatar
0
Hi child's
5th Feb 2018, 8:05 AM
Avazbek Абдурахимов