2025 you will work on new way
Step 1.

Step 2.

Step 3.

Step 4.

Step 5.

Step 6.

Step 7.

Step 8.

-------------------------------------------
Old way before 2023, no longer work any more
-------------------------------------------
login my.esri or arcgis online first, then
Step 1. go to
https://developers.arcgis.com/dashboard/

Step 2. select javascript sdk

Step 3.

Step 4.

Step 5.

Step 6.

Step 7.

Step 8.
