One more angle since I haven’t seen anyone mention it.
Instructions on how to bootstrap a software portfolio:
Pick a language (sounds like you chose JS which would be my pick as well), buy a copy of cracking the coding interview, make a leetcode.com account, make a codepen.io account, and get to work.
If you’re smart and dedicated you can teach yourself this stuff and these are the best tools to help you in my opinion.
Spend your time solving problems on leetcode and then utilizing these techniques in codepen portfolio pieces.
In my opinion with serious dedication you can have a junior swe worthy resume and portfolio put together within a year.
[edit] since the question inevitably comes up with JS in my opinion you should not spend any time focusing on front end frameworks. Learn Vanilla JS, HTML and CSS, you will blow your interviewers away if you can solve their problems without a framework and it is overhead you don’t need as a beginner.