<script>

var x = 12;

var y = 15;

var z = Math.abs(x-y);

alert(z);

</script>