JSFiddle - React, Tailwind, and code Playground

by voxman90

JavaScript

obj = {
  arrow_function: (str) => {
    console.log(str);
  }
}

console.log('test');

obj.arrow_function('ddddd');

class Arrow {
  constructor() {

  }

  func: () => {
    console.log(5);
  }
}

const arrowTest = new Arrow()

arrowTest.func();