const text = '10';
const num1 = +text;
const num2 = Number(text);
console.log(num1 === num2, typeof num1);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const text = '10';
const num1 = +text;
const num2 = Number(text);
console.log(num1 === num2, typeof num1);