class Randomcase {
	/**
	 * A function that transforms a normal string into Randomcase
	 *
	 * @static
	 * @param {String} input
	 * @memberof Randomcase
	 */
	static transform(input) {
		return input
			.split("")
			.map(char =>
				Math.random() > 0.5 ? char.toUpperCase() : char.toLowerCase()
			)
			.reduce((acc, curr) => acc += curr, "");
	}
}

/**
 * Program definition - main
 */

const input = process.argv[2];

if(!input) {
	console.error('Input has to be provided! Use "--help" for help');
} else {
	processInput(input);
}

function processInput(input) {
	switch(input) {
		case "--help":
		case "-h":
			console.log("Usage: node index.js \"<string to randomcase>\"");
			break;
		default:
			console.log(Randomcase.transform(input));
			break;
	}
}

@@ -303,43 +303,13 @@
 %09%09%09.
-reduce((acc, curr) =%3E acc += curr, 
+join(
 %22%22);
@@ -387,16 +387,17 @@
 %5B2%5D;%0A%0Aif
+ 
 (!input)
@@ -538,16 +538,17 @@
 %0A%09switch
+ 
 (input) 
@@ -721,14 +721,13 @@
 %09%09break;%0A%09%7D%0A
+
 %7D
-%0A

Use join instead of reduce