Answers for "js test if number between 2 numbers"

1

javascript check if number is multiple of 3

var num 

num = prompt('Enter the number')


if (num % 3 == 0)
	document.write('Multiple of 3')
else 
  document.write('Not a multiple of 3')
Posted by: Guest on March-24-2021
0

if between two numbers javascript

if (500 < thenumber && thenumber < 600) {
  // ...
}
Posted by: Guest on August-03-2020

Code answers related to "js test if number between 2 numbers"

Code answers related to "Javascript"

Browse Popular Code Answers by Language