js/app.js
/* The function checks validates the age provided by user */
The function checks validates the age provided by user
The function checks validates the age provided by user
function checkmarried(married) {
	married = married.toLowerCase();
	var expectedvalue3 = 'y';
	var expectedvalue4 = 'yes';
	if (married === null) {
		alert('No User Input. Thanking for Playing')
	}
	else if (married === expectedvalue3 || married === expectedvalue4) {
		alert('Congratulations!! your is answer is correct');
	}
	else {
		alert('Ops!! that is incorrect answer');
	}
}
function checkmarried ( married ) { married = married . toLowerCase ( ) ; var expectedvalue3 = 'y' ; var expectedvalue4 = 'yes' ; if ( married === null ) { alert ( 'No User Input. Thanking for Playing' ) } else if ( married === expectedvalue3 || married === expectedvalue4 ) { alert ( 'Congratulations!! your is answer is correct' ) ; } else { alert ( 'Ops!! that is incorrect answer' ) ; } }
The function checks validates the age provided by user
The function checks validates the age provided by user