DEV Community

Cover image for JavaScript Cheatsheet from beginners to advance..

JavaScript Cheatsheet from beginners to advance..

Anmol Raj on August 08, 2021

Hi. I've tried to some up javascript cheatsheet in one article. Hope you like it. JavaScript Basics Set of JavaScript basic syntax to...
Collapse
 
klukiyan profile image
Kiril Lukiyan

That moment when a comment has way more useful info than the article 😊

Collapse
 
iftikhar profile image
iftikhar hussain

yeah absolutely.

Collapse
 
danwood profile image
Dan Wood

Where's the advance part?

Collapse
 
madza profile image
Madza
Collapse
 
imtridevsharma profile image
im-tridevsharma

When you print anything on console you must try other options too.
console.log(value) it's general one to log. Other can be used here like console.warn(), console.info(), console.error() and console.dir() Try it.

Collapse
 
tonypelliccio profile image
Tony Pellicccio

Thanks. Had to refresh my memory on JS. It's funny the DOM thing I know it MS products but had to look them up for JS. Pretty simple to be honest. And it sort of follows C/C++ formatting so there's that too.

Collapse
 
emperor100 profile image
Ravikant

Nice content...
(One typo in 11th bullet, protytype)

Collapse
 
eltringhamz profile image
Zoe

Nice! Thank you

Collapse
 
mightycoderx profile image
MightyCoderX

Just use getElemenyById('foo') for elements with 'foo' id

Collapse
 
hiv_ft profile image
ft;hiv

Hi:

String REPLACE is wrong. It misses the SECOND parameter.

cfr.:

developer.mozilla.org/en-US/docs/W...

Regards

Niky

Collapse
 
iftikhar profile image
iftikhar hussain

Awesom, you should post the cheatsheet, thanks

Collapse
 
hiv_ft profile image
ft;hiv

Hi:

Indicate WHAT is returned is in order; example: string match, search...
Indicate also what is returned if not comply (-1, NUL, etc.).

Regards

Collapse
 
anmolraj profile image
Anmol Raj

Thanks brother..πŸ’š