i want check capcha security code in javascript


i have php code butt i want in javascript

php code is ..........
if( $_SESSION['security_code'] == $_POST['security_code'] && !empty($_SESSION['security_code'] ) ) {
}