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 checkkid(kid) {
	var correctkid = 'y';
	if (kid === null) {
		alert('No User Input. Thanking for Playing')
	}
	else if (kid === correctkid) {
		alert('Congratulations!! your is answer is correct');
	}
	else {
		alert('Ops!! that is incorrect answer');
	}
}
function checkkid ( kid ) { var correctkid = 'y' ; if ( kid === null ) { alert ( 'No User Input. Thanking for Playing' ) } else if ( kid === correctkid ) { 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