JavaScript substring vs. substr with Examples - The Difference Between JavaScript String Extraction FunctionsWhen you write JavaScript, you need to know string manipulation functions. There is a slight difference between JavaScript substring() and JavaScript substr() which are both used to extract characters from strings.
location.href vs. location.replace - The Difference Between JavaScript Url Redirection MethodsJavaScript offers several ways to display a different page in the current browser window. Redirecting visitors with Javascript is straightforward.
KeyPress, KeyDown, KeyUp - The Difference Between Javascript Key EventsIn JavaScript, pressing a key triggers events which can be captured and handled. Three events are triggered when a key is pressed and released: keydown,keypress,keyup