JavaScript exercises and solutions - Swap two numbers - Printable Version +- QP School (https://qomplainerzschool.lima-city.de) +-- Forum: Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=3) +--- Forum: JavaScript Tutorials (https://qomplainerzschool.lima-city.de/forumdisplay.php?fid=6) +--- Thread: JavaScript exercises and solutions - Swap two numbers (/showthread.php?tid=4102) |
JavaScript exercises and solutions - Swap two numbers - Qomplainerz - 04-04-2023 The HTML part between the <body></body> tags looks like this: Code: Enter the first number here: The JavaScript part looks like this: Code: function SwapNumbers() Note: The reset button and the reset function are optional in case you want to delete what you were looking for in order to look for something else. |