UKnowva interview question

what is javascript and why it is used