Youโre not โbehind.โ
Youโre exactly where someone whoโs trying should be.
Youโre not โbehind.โ
Youโre exactly where someone whoโs trying should be.
Writing bad code is part of writing better code.
Itโs the only way you learn.
Writing code that runs is one level.
Writing code thatโs easy to read is the next.
Dear junior dev,
One year of relentless practice will put you ahead of people who dabbled for five.
const expensiveValue = useMemo( () => compute(a, b), [a] );
What is wrong with this #react code?
If your CSS doesnโt work, add a bright border.
Debug visually. Old trick, still gold.
const timestamp = Date.parse('2025-07-06'); console.log(timestamp); // e.g. 1751760000000
JavaScript Tip ๐ก
Use ๐ณ๐๐๐.๐๐๐๐๐() to convert a date string to a timestamp
Dear junior dev,
Itโs better to write simple code you understand than clever code you donโt.
useEffect(() => { const interval = setInterval(doStuff, 1000); return clearInterval(interval); }, []);
What is wrong with this #react code?
You canโt compare your progress to someone whoโs been at it twice as long.
Stay in your lane.
// Reloads the browser tab location.reload();
JavaScript Tip ๐ก
Use ๐๐๐๐๐๐๐๐.๐๐๐๐๐๐()โto force reload the current page
Dear junior dev,
Stop trying to learn everything at once.
โข Pick one thing.
โข Go deep.
Thatโs how you grow.
const MyComponent = () => { <div>Hello</div>; };
What is wrong with this #react code?
Most of software development is just figuring out why something doesnโt work.
I love doing this. Great share ๐
๐ฏ
Always happy to help ๐
document.designMode = "on";
JavaScript Tip ๐ก
Use ๐๐๐๐๐๐๐๐.๐๐๐๐๐๐๐ผ๐๐๐โ=โ"๐๐" to ๐บ๐ฎ๐ธ๐ฒ ๐ฎ๐ป๐ ๐๐ฒ๐ฏ๐ฝ๐ฎ๐ด๐ฒ ๐ฒ๐ฑ๐ถ๐๐ฎ๐ฏ๐น๐ฒ (great for quick mockups or demos)
Dear junior dev,
Googling/using AI tools isnโt cheating.
Itโs part of the job.
useEffect(() => { fetch('/api/user'); setLoaded(true); }, []);
What is wrong with this #react code?
Promise.resolve(42).then(console.log); // 42
JavaScript Tip ๐ก
Use ๐ฟ๐๐๐๐๐๐.๐๐๐๐๐๐๐(๐๐๐๐๐) and ๐ฟ๐๐๐๐๐๐.๐๐๐๐๐๐(๐๐๐๐๐) to quickly create resolved or rejected promises.
Dear junior dev,
Youโll look back one day and be shocked at how far youโve come.
Keep going ๐ช.
const MyComponent = () => { const inputRef = useRef(null); // ... some logic that uses inputRef return <input ref={inputRef.current} />; };
What is wrong with this #react code?
Debugging is 80% of coding.
Once you accept that, everything gets easier.
console.log(String.raw`Line1\nLine2`); // => "Line1\nLine2" (no actual newline)
JavaScript Tip ๐ก
Use ๐๐๐๐๐๐.๐๐๐ with template literals to output raw strings, ignoring escapes.
Dear junior dev,
You donโt need more fancy tools.
You need more reps.
const handleSubmit = () => { setIsSubmitting(true); if (isSubmitting) { return; } sendData(); };
What is wrong with this #react code?
Most devs are stuck because they wait for a managerโs roadmap.
It rarely comes.
Yesterday, 3,128 devs learned how to steer their careers.
Miss it?
Catch up here โ
www.frontendjoy.com/p/devs-own-...
JavaScript Tip ๐ก
Use ๐พ๐๐๐๐๐.๐๐๐๐๐๐๐()โ+ ๐ฐ๐๐๐๐ข.๐๐๐๐๐๐() to filter object properties
Dear junior dev,
The seniors you admire once panicked over a merge conflict too.