Write JavaScript code to convert the number 236.2363611111556 into currency format and JavaScript statement to show output?
Var input_amt = 236.2363611111556 ;
mid_data = input_amt.toString( ) ;
decimalPos = mid_data.indexOf( ".", 0 ) ;
final_amt = mid_data.substring( 0, decimalPos + 3 ) ;
document.write( final_amt + " Rs." ) ;