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
// The Kotlin code below is decompiled into the Java code in this file. | |
/* | |
fun meaninglessCounter(): Int { | |
var counter = 0 | |
for (i in 1..10_000_000_000) { | |
counter += 1 | |
} | |
return counter | |
} |
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
// Check out https://www.microsoft.com/net/tutorials/csharp/getting-started for the comprehensive tutorial. | |
using System; | |
// In C#, a namespace is a scope in which developers organize their code, | |
// and you've been using them throughout the previous lessons. | |
namespace GettingStartedWithCSharp { | |
public class Program { | |
public static void Main() { |
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
// Lack of function signature. | |
var foo = 'im a number' | |
function divideByFour(number) { | |
return number / 4 | |
} | |
console.log(divideByFour(foo)) //NaN | |
// Immutability support. |