JSFiddle - React, Tailwind, and code Playground

by Kristian Jabilles

JavaScript

function testing(required, optional=getOptional()) {
	console.log(required);
  console.log(optional);
}

function getOptional(){
 return 'dataFrom ' || 'defaultValue'
}

testing(true);