what is javascript and what is it used for code example Example: what is javascript used for //Javascript is used to make HTML websites more interactive