If I understand the question correctly you can add a label to the slider thumb by setting labelsVisible to true:
const populationSlider = new Slider({
container: "population-slider",
min: 0,
max: 1000000,
values: [selectedPopulation],
labelsVisible:true,
steps: 10000,
snapOnClickEnabled: false
});