Skip to content

Instantly share code, notes, and snippets.

@RinatValiullov
Last active Jun 25, 2017
Embed
What would you like to do?
Getting the maximum number
function checkNumbers(a, b, c) {
	if ( a > b ) {
	
		if ( a > c ) {
			console.log("maximum = " + a);
		} else {
			console.log("maximum = " + c);
		}

	} else {
	
		if ( b > c ) {
			console.log("maximum = " + b);
		} else {
			console.log("maximum = " + c);
		}
		
	}
}

In Chrome DevTools

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment