-3
let Big = 11243566n;
console.log (' ${Big}  ${typeof Big}.');

The console says:

${Big} ${typeof Big}.

How to make it to print

11243566 [BigInt]

or something similar?

Ivar
  • 6,138
  • 12
  • 49
  • 61
Leswar
  • 1

1 Answers1

0

You have to use ` instead of single quotes:

let Big = 11243566n;
console.log (` ${Big} ${typeof Big}.`);

A. Llorente
  • 1,142
  • 6
  • 16