#javascript
Read more stories on Hashnode
Articles with this tag
Today I put together one technique I find useful for writing test. That is to use data attributes for finding DOM elements in test. The same idea can...
Jekyll is nice and reliable static site generator; however when it comes to using modern Javascript, Jekyll does not seem to have a clear solution or...
It is nice to know how to convert any text into hyphenated string. const parameterize = (string) => string .toLowerCase() ...
Sometimes I want to disable the submit event triggered by pressing the enter key while focusing an input field. <form action="/users/sign_up" ...
Sometimes I want to detect the Enter key press event in JavaScript. Vanilla JS // Listen for the enter key...