Javascript – using typeof operator in string interpolation to check data type of variable when running the code output is not coming correct
let num = 1 let st = 'data' console.log(typeof `${num}`, typeof `${st}`) the output of the first variable should be number but it's printing string when I am using string interpolation console.log(typeof `${num}`) it's printing string, but when I am…