how to value of a variable in javascrtipt code example Example: how to define variable in javascript var <variable-name>; var <variable-name> = <value>;