JSFiddle - React, Tailwind, and code Playground
by Abdul Ahmad
JavaScript
const word = 'something_long.js';
console.log(word.slice(0, word.length - 3));
by Abdul Ahmad
const word = 'something_long.js';
console.log(word.slice(0, word.length - 3));