Cheat Sheets our something developers need always for reference. So here I have compiled many JavaScript reference codes. See the classification an...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
Hey, great article! Just one thing the "charAt()" example actually returns an empty space " ", not a "f"
Agreed.
Thank for reading i am happy i have someone to read too.
your
toExponential
andtoPrecision
examples are broken. If areturn
statement is on a line by itself, it will just return undefined.Beautiful Post.
Check out this Utility JavaScript Library I made that is sure to ease your workflow.
It contains methods and functions that manipulates the DOM, Strings, Numbers, Objects and even Mathematical operations, and other utility functions
Its called ToolJS and can be found on Github and NPM
You can check out this series I posted here on dev.to
Introduction to ToolJS. A JavaScript Utility Library
It seems like the whole "the 2021" part of the article is missing. I don't want to be rude but all here is like fundamentals of JS and not some bright new features, which could help one in 2021. For that reason I would say the article's title is misleading at best and a clickbait at worst.
Hi. Just wanted to say that the example for getMonth() is using getFullYear().
Thanks for the useful article!
Nice! I made one for regex alone sometime back:
JavaScript regular expressions cheatsheet and examples
Sundeep ・ Dec 6 '19 ・ 8 min read
Great, thanks!
You have a mistake on your Do While Loop.
Awesome blog post, I already really like the new
includes
method for Strings and Arrays 🎉I think this is more complete as a reference: developer.mozilla.org/en-US/docs/W...
I will steal some of those snippets for my personal cheat sheet ;-) Thank you!
Do while snippet is wrong. In line 2 should be a "do" instead of a "while". Also the condition in last line, "(1 < 100)" makes an infinite loop, it seems it should be "i" instead of "1".
Nice, now make this article into a cheatsheet!
Great article
This is great. Thanks for sharing!