Skip to content

Instantly share code, notes, and snippets.

@RinatValiullov
Last active June 25, 2017 20:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RinatValiullov/a2704a66b241e83917efd742f3f43ff1 to your computer and use it in GitHub Desktop.
Save RinatValiullov/a2704a66b241e83917efd742f3f43ff1 to your computer and use it in GitHub Desktop.
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