why is this used in javascript code example Example: what is javascript used for //Javascript is used to make HTML websites more interactive