const formatNumbers = (string) => { const num = parseInt(string); const newText = num.toLocaleString(); return newText };