JAVASCRIPT+PHYSICS

Javascript Physics for developers


Example 2

Change speed



In the example above we have an object with constant speed.We increase the speed every time we press the first button.The rate of change of speed per unit time is the acceleration of the object.Accelerations are vector quantities (they have magnitude and direction) so the correct definition is that Acceleration is the rate of change of velocity of an object with respect to time.


A Constant acceleration gives us a constant change of Speed.Note that: