how to get a value assigned to a function in html code example Example: declare function javascript function myFunction(var1, var2) { return var1 * var2; }