Skip to content

Instantly share code, notes, and snippets.

@wilornel
Created April 13, 2012 00:00
Show Gist options
  • Select an option

  • Save wilornel/2372007 to your computer and use it in GitHub Desktop.

Select an option

Save wilornel/2372007 to your computer and use it in GitHub Desktop.
<html>
<head>
<script type="text/javascript">
function executeAnother(theFunc){
// execute some other function
theFunc;
alert ('this: ' +working1()); // Here I am just testing the return of my other function
}
function working1(){
console.log('console.log works');
console.log('expecting hey: ' +strings());
return "workinggg";
}
function strings(){
return "hey";
}
</script>
</head>
<body>
<input type='submit' value=' button ' onclick='executeAnother(working1())'/>
</body>
</html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment