MCPcopy Create free account
hub / github.com/codemistic/Web-Development / convVol

Function convVol

Unit Converter/script.js:25–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23 }
24
25 function convVol(){
26 let lit = (inputEl.value * 3.785).toFixed(3) ;
27 let gal = (inputEl.value / 3.785).toFixed(3);
28 volEl.innerHTML=`${inputEl.value} liters = ${gal} gallons | ${inputEl.value} gallons = ${lit} liters`
29 }
30
31 function convMass(){
32 let lbs = (inputEl.value * 2.205).toFixed(3) ;

Callers 1

script.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected