I am not sure why this evaluation differs when it is only in a variable, versus a string. I don't see any logic.
const numRegex = /hundred|thousand|million|billion|trillion/ig;
const isNum = string => numRegex.test(string)
var word = 'hundred';
console.log('isNum with string:', isNum('hundred')); // true
console.log('isNum with variable:', isNum(word)); // false
console.log('words are equal:', word === 'hundred'); // true