Yes, it is.
The string must be eval
‘d, which is evil (and very slow).
It also prevents you from using local variables in the callback.
More Related Contents:
- Why is bracket notation not working here? [duplicate]
- Why is set.timeout not working in this php while loop?
- Why is the method executed immediately when I use setTimeout?
- How can I pass a parameter to a setTimeout() callback?
- Pass correct “this” context to setTimeout callback?
- Combination of async function + await + setTimeout
- setTimeout calls function immediately instead of after delay
- Difference between setTimeout with and without quotes and parentheses
- Why is my function call that should be scheduled by setTimeout executed immediately? [duplicate]
- Execute script after specific delay using JavaScript
- What is the reason JavaScript setTimeout is so inaccurate?
- JavaScript : For loop with timeout
- Passing functions to setTimeout in a loop: always the last value?
- JavaScript setTimeout() won’t wait to Execute? [duplicate]
- Javascript SetTimeout and Loops [duplicate]
- setTimeout() is not waiting [duplicate]
- setInterval/setTimeout return value
- What happens to setTimeout when the computer goes to sleep?
- setTimeout behaviour with blocking code
- How many concurrent setTimeouts before performance issues?
- How to tell .hover() to wait?
- stop settimeout in recursive function
- Why doesn’t setTimeout(.., 0) execute immediately?
- Is it possible to chain setTimeout functions in JavaScript?
- JQuery, setTimeout not working
- Are equal timeouts executed in order in Javascript?
- Global variable is logged as undefined when passed as parameter to setTimeout callback function
- How browser executes Javascript and renders asynchronously
- how many javascript setTimeout/ setInterval call can be set simultaneously in one page?
- setTimeout(): If not defined in EcmaScript spec, where can I learn how it works?