JavaScript mendapatkan besarnya angka

const a = 10;
const b = 20;

const difference = Math.abs(a - b);
// difference is 10.
Jealous Jaguar