
- #Javascript snippets code#
- #Javascript snippets password#
- #Javascript snippets series#
- #Javascript snippets free#
How is nodeName different from tagName? How are the two increment operators different, e.g.

The deep knowledge of a subject really lies in understanding subtle differences between alternate ways of solving the same problem. Elijah built a CodeSandbox playground where you can experiment with the different approaches. If you only need to output the time portion of a JavaScript date object, there’s toLocaleTimeString.įinally, the generic method toLocaleString lets you pass one or all of the options from the former ones into one method. The toLocaleDateString method comes in handy when you want a date that contains only numbers, a long wordy date, or one that outputs in a different language. Natively format JavaScript dates and times, a thorough guide.Įlijah summarized three different methods for dealing with time and dates. Natively Format JavaScript Dates And Timesĭo we still need libraries like Moment.js or date-fns to format JavaScript dates and times? With native browser capabilities being quite good these days and browser support being great, too, not necessarily, as Elijah Manor points out.
#Javascript snippets free#
Vanilla JavaScript Video Crash Course, a free video course with 43 sessions.

#Javascript snippets password#
Vanilla JavaScript video crash course is another free video course with 43 sessions, starting out with JavaScript DOM all the way to async JS, Babel and Webpack and a JavaScript password generator.
#Javascript snippets code#
30 Days Vanilla Code Challenge, a free video course by Wes Bos. You can also get all 30 days challenges and solutions as a GitHub repo. That’s a great way to boost your JavaScript skills. Vanilla JS Code Challengeģ0 Days Vanilla JS Code Challenge is a free video course by Wes Bos where you’ll learn to build 30 things in 30 days, with 30 tutorials - without any frameworks, compilers, libraries or boilerplates. Single Line of Code, with JavaScript utilities for basic tasks and DOM manipulations. Phuoc Nguyen has released Single-Line-Of-Code, a repository of JavaScript utilities for everything around arrays, date and time, DOM manipulations, functions, numbers and objects. Micro.js is a curated repository of small JavaScript libraries and utilities. All libraries are grouped, and are below 5k in size, doing one thing and one thing only - and doin it well.

Micro.js is a curated repository of small JavaScript libraries and utilities, collected by Thomas Fuchs. You’ll learn about selecting element, event delegation, file structure, dropdowns and enter and leave transitions.
#Javascript snippets series#
JavaScript Framework Diet is Sebastian De Deyne’s ongoing series on common tasks, solved without JavaScript frameworks.A fantastic repository that’s worth keeping close. Learn Vanilla JS features books, courses, evergreen resources, communities, podcasts all around vanilla JS.The sites feature repositories of code snippets for everything from UI and inputs to media, navigation and visual effects (with use cases not just for jQuery, but pretty much any legacy code). PlainJS, You Might Not Need jQuery and You Don’t Need jQuery are great references for vanilla JavaScript snippets.There are also many other useful resources worth taking a look at: Meet a practical reference guide with common jQuery patterns and their native JavaScript equivalents. One of the excellent guides is Tobias Ahlin’s Cheat sheet for moving from jQuery to vanilla JavaScript, a practical reference guide with some of the most common jQuery patterns and their equivalents in JavaScript. If you still find yourself in the land of legacy systems running on jQuery, there is a number of resources that allow you to slowly move away from jQuery with more lightweight and standardized options. Migrating from jQuery to Vanilla JavaScript Meet Vanilla JavaScript toolkit, a growing collection of vanilla JavaScript methods and helper functions. Also, Chris Ferdinandi runs a Vanilla JS Academy, with plenty of daily developer tips on Vanilla JS sent in his newsletter. Vanilla JavaScript Toolkit provides a growing collection of vanilla JavaScript methods, helper functions, plugins, boilerplates, polyfills, and learning resources. 120 bulletproof, plain JavaScript snippets, on HTML Dom. HTML Dom provides over 120 bulletproof, plain JavaScript snippets for everything from toggling password visibility to creating resizable split views - all supported for modern browsers and IE11+. 30 Seconds of Code, with a huge repository of short code snippets and JavaScript cheatsheets. It also features useful JavaScript cheatsheets. You can also find plenty of small utilities for Python, React Hooks, React Components and Node.js. Also, subscribe to our newsletter to not miss the next ones.ģ0 Seconds of Code features a huge repository of short code snippets for JavaScript, including helpers for dealing with primitives, arrays and objects, as well as algorithms, DOM manipulation functions and Node.js utilities.
