JSFiddle - React, Tailwind, and code Playground

by ruhul105

JavaScript

function inchesToFeetAndInches (inches) {
	let feet = Math.floor(inches / 12);
  return {
    'feet': feet,
    'inches': (inches - (feet*12))
  }
}
console.log(inchesToFeetAndInches(64))