If amount purchased is $x, tax rate is y,then the total = x(1+y)f(x,y) = x(1+y)convert this is JavaScript

Ouput will appear ... here!