Sync blocks the chef
A 0ms timer, then pbkdf2Sync. Which prints first?
const crypto = require('node:crypto');setTimeout(() => console.log('timer'), 0);crypto.pbkdf2Sync('secret', 'salt', 200000, 64, 'sha512');console.log('hash done');1. Predict the output
Tap the lines in the order you think they print.
- 1…
- 2…