CodeFaster

CodeFaster

Don't stomp variables

Tyler Adams's avatar
Tyler Adams
Nov 10, 2021
∙ Paid
1
2
Share

Don’t do:

text = text.split(delimiter)

Instead do:

const a = text.split(delimiter)

That way at the end of the program you can add

console.log({a, text})

and see both the array and the original text

This post is for paid subscribers

Already a paid subscriber? Sign in
© 2025 Tyler Adams
Privacy ∙ Terms ∙ Collection notice
Start writingGet the app
Substack is the home for great culture