Coding Master
前往频道在 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 😉
显示更多9 278
订阅者
无数据24 小时
-257 天
-12430 天
帖子存档
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));
