JSFiddle - React, Tailwind, and code Playground

JavaScript

var i = 1;
var divID = "question-" + parseInt(i+1,10);
alert(divID);