3rd Jul 2020, 4:31 AM
Woolbex
Woolbex - avatar
4 Respuestas
+ 1
With your code as is the variables _num and _tac are part of the function textani() scope and can't be used by the function textanicicle(). I suggest... First, to get rid of the NaN, _num should declare and set to 0 outside of the function textani(). Second, the variable _tac should also be declared outside the function but should assign it the setInterval timer inside of the function textani(). Declaring these two variables outside of the function will make them a part of the global scope and then the function textanicicle will have access to them thus allowing your code to run as you wanted. h̶t̶t̶p̶s̶:̶/̶/̶c̶o̶d̶e̶.̶s̶o̶l̶o̶l̶e̶a̶r̶n̶.̶c̶o̶m̶/̶W̶a̶T̶i̶J̶C̶4̶o̶i̶B̶l̶c̶/̶?̶r̶e̶f̶=̶a̶p̶p̶#̶j̶s̶ ̶ Edit: My bad I should have posted this instead of reposting your code https://code.sololearn.com/W2UCpCoyOCWH/#html
3rd Jul 2020, 6:32 AM
ODLNT
ODLNT - avatar
+ 2
On another note. <text> is not an standard HTML tag w3schools.com/tags/default.asp
3rd Jul 2020, 6:36 AM
ODLNT
ODLNT - avatar
+ 1
ODLNT, Thank you so much!
3rd Jul 2020, 7:53 AM
Woolbex
Woolbex - avatar
+ 1
Rithea Sreng, yes, i want.
3rd Jul 2020, 7:53 AM
Woolbex
Woolbex - avatar