function calculatePerHead(bill,noOfPersons){

   var price= Math.floor(bill/noOfPersons);
   alert("Each person have to  give a " + price + " $ of his share in the bill");
}
//Parameterized Function with Math.floor concept
Parameterized Function with Math.floor concept
Parameterized Function with Math . floor concept
function calculatePerHead(bill,noOfPersons){
   var price= Math.floor(bill/noOfPersons);
   alert("Each person have to  give a " + price + " $ of his share in the bill");
}
function calculatePerHead ( bill , noOfPersons ) { var price = Math . floor ( bill / noOfPersons ) ; alert ( "Each person have to  give a " + price + " $ of his share in the bill" ) ; }
Parameterized Function with Math.floor concept
Parameterized Function with Math . floor concept