JSFiddle - React, Tailwind, and code Playground
by tymeJV
JavaScript
var currentStep = "step1",
number = parseInt(currentStep.substr(currentStep.length - 1, currentStep.length)) + 1;
console.log(number);
by tymeJV
var currentStep = "step1",
number = parseInt(currentStep.substr(currentStep.length - 1, currentStep.length)) + 1;
console.log(number);