The ability to create interactive games in JavaScript is getting easier with the constant improvements to JavaScript engines and the ability for browsers to utilize the GPU.

Here is A Collection of free JavaScript Pong game code examples.

1.Pong game with JavaScript

Made with

Html
Css/SCSS
Javascript

Author

Gabriel Dubé

Demo


2.PONG TENNIS

Simple tennis video game with Pong game mechanics. Made with p5.js.

Made with

Html
Css/SCSS
Javascript

Author

Drew Fleeman

Demo


3.PONG GAME

Made with

Html
Css/SCSS
Javascript

Author

Austin Condiff

Demo


4.PONG GAME

Classic arcade game in 2D/3D.

Made with

Html
Css/SCSS
Javascript

Author

Sascha Sigl

Demo


5.3D CANVAS COMPUTER AND PONG

Manually-generate coordinates for a 3d render of an old desktop computer on the 2d canvas context (no libraries), including a playable game of pong! (Yes, the ball gets faster every time you hit it).

Made with

Html
Css/SCSS
Javascript

Author

Matei Copot

Demo


6.PLAY PONG!

Made with

Html
Css/SCSS
Javascript

Author

Simone Vittori

Demo