JavaScript, the typeof operator | SoloLearn: Learn to code for FREE!

0

JavaScript, the typeof operator

So I'm a newbie and I have a problem with typeof operator, so here's a variable 'a' and I have to write it in new variable aType I have: 'use strict' // use type of variable 'a' console.log(a); Is it: const a = aType; const type =typeof a;

1 Answer

New Answer

+1

let a; let aType = typeof a; console.log(aType); //undefined