Hey there! This problem might be a bit unpredictable, but give it a go and let us know how you do!
Given the following code snippet, determine which statement is correct regarding the use of the 'crypto' module in Node.js.
const crypto = require('crypto');
const secret = 'abcdefg';
const hash = crypto.createHmac('sha256', secret)
.update('I love cupcakes')
.digest('hex');
console.log(hash);