Answer:
const BigNumber = require('bignumber.js');
var f = new BigNumber("1");
for (let i=1; i <= 100; i++) {
f = f.times(i);
console.log(`${i}! = ${f.toFixed()}`);
}
Step-by-step explanation:
Above is a solution in javascript. You will need a bignumber library to display the numbers in full precision.