Write a JavaScript Code about simulation of a spring-masssystem. There is a line connect between a ball and the ceiling. Theball will bounce up and down with dumpling. It will not havegravity. It has method let user to change the springstiffness and mass of the ball. Mouse drag (or click) will apply aforce to the ball.
Solution