diff --git a/aio/content/guide/web-worker.md b/aio/content/guide/web-worker.md index 9572d2072c..c7d51d4d0a 100644 --- a/aio/content/guide/web-worker.md +++ b/aio/content/guide/web-worker.md @@ -27,7 +27,7 @@ Running this command will: // Create a new const worker = new Worker('./app.worker', { type: 'module' }); worker.onmessage = ({ data }) => { - console.log('page got message: $\{data\}'); + console.log(`page got message: ${data}`); }; worker.postMessage('hello'); } else {