array defined

parseInt added to prompt for string conversion