Dsquares interview question

OOP,Desgin pattern, Solid principle difference between var & object