JS DEFAULT PARAMETERS EXAMPLE
Run
<!doctype html>
	<head>
		<style>
			/* CSS comes here */
			
		</style>
		<title>JS Default Parameters</title>
	</head>
	<body>
		<h2>Default Parameters Examples</h2>
		<script>
			// default function parameters
            function add(a=10, b=20){
            	return a+b;
            }
            
            // No argument
            document.write("Sum one: " + add());
            
            // passing single argument
            document.write("<br/>Sum two: " + add(1));
            
            // passing two argument - one number one empty string
            document.write("<br/>Sum two: " + add(1,''));

		</script>
	</body>
</html>