This example http://raphaeljs.com/gear.html has the following code:
function run() { e.animate({along: 1}, 2e4, function () { e.attr({along: 0}); setTimeout(run); }); }
What does β2e4β mean in this example and how does it work?
it means 2 * 10 ^ 4and try in console 2e4 output will be 20000
2e4
20000
e is scientific notation
e
code is equivalent
... e.animate({along: 1}, 20000, function () { ....
2e4 scientific notation for 2 * 10^4 and therefore has the same meaning as 20,000.
2 * 10^4
Source: https://habr.com/ru/post/943598/More articles:Present a class as a dict or list - pythonError connecting to the web using socket.io on an ec2 instance? - javascriptjQuery matches div height with dynamic image height - javascriptiOS sorts NSString's NSArray time - sortingHow to convert Int while in C #? - c #How to vertically align elements in a horizontal ul list with images? - htmlhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/943600/what-is-the-fastest-way-to-notify-another-thread-that-data-is-available-any-alternativies-to-spinning&usg=ALkJrhgFGa_PBlTGdzX-kXiDxoyYYeLiQQMake centered DIV inside wide DIV expand with content width - htmlavoiding collisions while collapsing an infinite blocking buffer into a circular buffer - c ++Ruby array for javascript - Rails - javascriptAll Articles