Skip to content

Instantly share code, notes, and snippets.

@jochemstoel
Created January 7, 2018 16:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jochemstoel/e0a1674725dcba96a2b7e932c49c23b0 to your computer and use it in GitHub Desktop.
Save jochemstoel/e0a1674725dcba96a2b7e932c49c23b0 to your computer and use it in GitHub Desktop.
Example 1
/* imitate standarized console object */
var console = {
log: string => {
mscorlib.System.Console.WriteLine(string)
},
error: string => {
mscorlib.System.Console.Error.WriteLine(string)
}
}
/*
Mental note:
In JavaScript we can console.log('string', someVariable, 1234, { a: 1 })
This will not work here because Console.WriteLine expects a string.
You need some logic that will Array.join() the function arguments.
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment