javascript ajax and nonce

Okay, so I found a working solution which is as simple as I thought the whole process should be. The confusing WordPress codex made things harder really.

The creation and naming of the nonce is as simple as:
wp_create_nonce( 'example' );

This is passed though AJAX and localisation of the script to the PHP.

Then during a $_POST verification; all that is needed is to pass the post name as the second parameter in the verification function. eg:
check_ajax_referer( 'example', 'nonce')

nonce is the name of the $_POST identifier eg:
$_POST['nonce']

Somehow it was really hard to understand this through the codex, and other examples found through the web. I hope this explanation can help someone else struggling with the codex and nonces.