JSFiddle - React, Tailwind, and code Playground

by vysohanych

JavaScript

// Зробіть так, щоб вираз - num/num2 * 3 повертав значення відмінне від NaN
var num = 6,
num2 = null;

console.log(num/num2 * 3);


// Виправте помилку "Cannot read property 'name' of undefined" 
var obj = {};

obj.name;

// Виправте помилку "undefined is not a function"
var anotherObj = {"first-name": "Jerome"};

anotherObj.getName();