Toggle navigation
it
_qna
Home
EXT
Blog
Questions
Tags
QnA Legacy
Questions tagged as 'variáveis'
Tagged questions
3
answers
How to use the current value of a variable in an inner function?
The following code "prints" 50 times the text "Message 50" in a textarea . for (var i = 0; i < 50; i++) { setTimeout(function() { textArea.value += 'Mensagem ' + i + '\n'; textArea.scrollTop = textArea.scrollHeig...
asked by
27.12.2013 / 14:47