You are here:Home»KB»Programming»Javascript»Verify if a function returns true or false
Thursday, 04 December 2014 00:00

Verify if a function returns true or false

Written by

This useful bit of code allows you to run a function and see if it returns true or false.

function testFunction(){	

	if (validateCaptchaCode() == true) {
	
	alert('true');
		} else {
			alert('false');}
	
	return;

} 

 

 

Read 1109 times Last modified on Monday, 08 December 2014 00:38