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;

15th Jun 2020, 12:24 PM
Taty
Taty - avatar
1 Resposta
+ 1
let a; let aType = typeof a; console.log(aType); //undefined
15th Jun 2020, 12:44 PM
Gordon
Gordon - avatar