Infosys interview question

let var const difference programs on reactjs and javascript