worker environment variables, please help :)

I am pretty new to Cloudflare workers, I am using it for a personal app. my problem is that when i try to access my environment variables inside of the worker i simply get an error. now im pretty sure that its because im using javascript and not typescript, can anyone help me? thanks!

(the doc i read that sadly didnt work) https://developers.cloudflare.com/workers/configuration/environment-variables/
Attach text strings and JSON values as environment variables to your Worker. Environment variables are available on the env parameter passed to your
Was this page helpful?