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;

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