javascript function with var code example Example: javascript define variable var variable1 = "some variable content";