function twiceAsOld(dadYearsOld, sonYearsOld) {
let i = 0
do{
dadYearsOld++
sonYearsOld++
i++
}while(dadYearsOld / sonYearsOld == 2);
return i
}
console.log(twiceAsOld(36, 7));
function twiceAsOld(dadYearsOld, sonYearsOld) {
let i = 0
do{
dadYearsOld++
sonYearsOld++
i++
}while(dadYearsOld / sonYearsOld !== 2);
return i
}
console.log(twiceAsOld(36, 7));