javascript division get remainder
snippet in javascript

javascript division get remainder

user4217

var y=11;
var x=4;
var quotient = Math.floor(y/x); //2
var remainder = y % x; //3