JSFiddle - React, Tailwind, and code Playground JavaScript var array = ['10']; var total = parseInt(array[0],10) + 1; alert(total)