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
Write a JavaScript program to check if the last digit of the three given positive integers is same.
function last_digit(x, y, z)
{
if ((x > 0) && y > 0 && z > 0)
{
return (x % 10 == y % 10 && y % 10 == z % 10 && x % 10 == z % 10);
}
else
return false;
}
console.log(last_digit(20, 30, 400));
console.log(last_digit(-20, 30, 400));
console.log(last_digit(20, -30, 400));
console.log(last_digit(20, 30, -400));
9 278
[100%Off]Complete Modern JavaScript BootCamp from the beginning
Master JavaScript with Pure JavaScript!JavaScript ES6+, OOP, AJAX
https://coursevania.com/complete-modern-javascript-bootcamp-from-the-beginning/
