JSFiddle - React, Tailwind, and code Playground

by mswilson4040

TypeScript

const obj = { test: 'ing 123' };

console.log(obj.test);
console.log(obj!.doesntexist); // Excepting null here


// TypeScript Works Test

class Person {
	public name: string;
  constructor(name) {
  	this.name = name;
  }
}

const p: Person = new Person('joe');
console.log(p);