After Effects: controlling slider in ExtendScript
I found out - .value after slider.effect("Slider Control").property("Slider") and it works.

var a = slider.effect("Slider Control").property("Slider").value