Coulomb's law force between charges in JavaScript
Coulomb's law gives the force between two point charges: F = k q₁q₂ / r², with k = 9 × 10⁹ N m²/C². Here it is as a few lines of code. (I build PractiSci, where Coulomb's law is a free virtual lab.)
F