📒 JavaScript Trick - Use the URL constructor When you want to add some query parameters to your URL, use the built-in URL constructor in JavaScript instead of template literals. This results in more readable and less error-prone code as you don't need to manually write ? and &

MaxProgramming1's tweet image. 📒 JavaScript Trick - Use the URL constructor

When you want to add some query parameters to your URL, use the built-in URL constructor in JavaScript instead of template literals.

This results in more readable and less error-prone code as you don't need to manually write ? and &

This looks more secure approach


United States Trends
Loading...

Something went wrong.


Something went wrong.