JSFiddle - React, Tailwind, and code Playground

by Harmonix Motion

JavaScript

function splitWords(word) {
return word.split(' ');
}

const splitWordsES6 = word => word.split('');


const employeeInfo = {
name: 'John',
age: 20,
role: 'developer'
}

console.log(employeeInfo['age'])