How to check if one number is multiple of another in Node.js

1 Answer

0 votes
const num1 = 63;
const num2 = 9;

if (num1 % num2 === 0) {
  	console.log('yes');
} else {
  	console.log('no');
}



      
      
/*
run:
      
yes
        
*/

 



answered Jun 28, 2022 by avibootz

Related questions

...