Find the concentration of a solution using given Mass and Volume | Function to calculate concentration from the given mass of solute and volume of a solution ; Driver Program
function get_concentration ( mass , volume ) { if ( volume == 0 ) return - 1 ; else return ( mass / volume ) * 1000 ; } let mass , volume ; mass = 100.00 ; volume = 500.00 ; document . write ( get_concentration ( mass , volume ) ) ;