JSFiddle - React, Tailwind, and code Playground

by Anton Spirin

JavaScript

class ExtendedString extends String {
  constructor(...props) {
    super(...props);
  }
}

const superString = new ExtendedString('example');

alert(superString);