-
-
Save jochemstoel/e0a1674725dcba96a2b7e932c49c23b0 to your computer and use it in GitHub Desktop.
Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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