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

Function swapCurrency

Currency-Exchange-Rate-Calculator/script.js:22–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22function swapCurrency(){
23 let temp=curr1.value;
24 curr1.value=curr2.value;
25 curr2.value=temp;
26 calculate();
27}
28
29// Event Listeners
30curr1.addEventListener('change',calculate);

Callers

nothing calls this directly

Calls 1

calculateFunction · 0.85

Tested by

no test coverage detected