- 👋 Hi, I’m @Sarathisarathi2
- 👀 I’m interested in ...
- 🌱 I’m currently learning ...
- 💞️ I’m looking to collaborate on ...
- 📫 How to reach me ...
<script>
const inputs = document.querySelectorAll("input");
inputs.forEach((i0, i) => {
i0.addEventListener("keyup", ({ target }) => {
const v = +target.value * +target.getAttribute("divisor");
inputs.forEach(i1 => {
i1.value = v / +i1.getAttribute("divisor");
});
});
if (i === 0) i0.focus();
});
</script>