2 ms·
I don't think Javascript-the-language specifies how implementations implement them, so there is no clear answer to the question. Actually many languages don't.
by detaro 6y ago
I don't think Javascript-the-language specifies how implementations implement them, so there is no clear answer to the question. Actually many languages don't. And runtimes on real hardware have another pile of weirdness on top, so thinking too detailed about O-notation for real code quickly runs into limitations, especially for small-ish n.