Coding Master
11K subscribers
288 photos
13 videos
219 files
3.02K links
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 😉
Download Telegram
17 Pro JavaScript tricks you didn't know

This thought-provoking post by Rahul will increase your efficiency and productivity when coding JavaScript. - http://amp.gs/Mlp9

#javascript
Write a JavaScript program to find the larger number from the two given positive integers, the two numbers are in the range 40..60 inclusive.

function max_townums_range(x, y){
if( (x >= 40) && (x <= 60) && (y >= 40 && y <= 60) ){
if(x === y){
return "Numbers are the same";
}else if (x > y){
return x;
}else{
return y;
}
}else{
return "Numbers don't fit in range";
}
}

console.log(max_townums_range(45, 60));
console.log(max_townums_range(25, 60));
console.log(max_townums_range(45, 80));