3 ms·
your js version: y = myFunction(1); // y = 2 y = myFunction("1"); // y = "11" the ts version wouldn't allow you to compile myFunction("1")
by adam12 10y ago
your js version:
y = myFunction(1); // y = 2
y = myFunction("1"); // y = "11"
the ts version wouldn't allow you to compile myFunction("1")