Coding Master
Open in Telegram
ADMIN : @Coding_Master π¨πΌβπΌ Hello guys, I Created This Telegram Channel To Share Useful Content On Web Development & Programming. π Free Ebooks π Free Tools & Resources Links π Free Projects Source Code So Stay Tuned With Us & Keep Learning π
Show more9 278
Subscribers
No data24 hours
-257 days
-12430 days
Posts Archive
9 278
I've completed 70K Followers on my Instagram page @coding_.master π₯³π₯³ππππ₯π₯
Thnxx to all guys from the bottom of my heart β€β€β€π₯°π₯°π€π€
Keep supporting always ππ
Follow us on Instagram to learn web development ππ https://www.instagram.com/coding_.master/
9 278
Write a JavaScript program to compute the absolute difference between a specified number and 19. Returns triple their absolute difference if the specified number is greater than 19.
function diff_num(n) {
if (n <= 19) {
return (19 - n);
}
else
{
return (n - 19) * 3;
}
}
console.log(diff_num(12));
console.log(diff_num(19));
console.log(diff_num(22));
