Skip to content
Navigation menu
Search
Search
Log in
Create account
DEV Community 👩💻👨💻
Close
Web Development
Follow
Because the internet...
Posts
Left menu
👋
Sign in
for the ability to sort posts by
relevant
,
latest
, or
top
.
Right menu
Get viewport width and height in JavaScript (with examples)
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
Get viewport width and height in JavaScript (with examples)
#
javascript
#
webdev
#
beginners
Reactions
1
reaction
Comments
Add Comment
2 min read
About “__dirname is not defined in ES module scope” in JavaScript
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
About “__dirname is not defined in ES module scope” in JavaScript
#
javascript
#
webdev
#
beginners
Reactions
1
reaction
Comments
Add Comment
2 min read
How to get yesterday’s date in JavaScript without a library
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
How to get yesterday’s date in JavaScript without a library
#
javascript
#
webdev
#
beginners
Reactions
1
reaction
Comments
Add Comment
2 min read
Subtract days from a date in JavaScript without a library
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
Subtract days from a date in JavaScript without a library
#
javascript
#
webdev
#
beginners
Reactions
1
reaction
Comments
Add Comment
3 min read
How to add days to a date in JavaScript (without a library)
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
How to add days to a date in JavaScript (without a library)
#
javascript
#
webdev
#
beginners
Reactions
1
reaction
Comments
Add Comment
3 min read
7 Free Public APIs you will love as a developer💖
Tapajyoti Bose
Tapajyoti Bose
Tapajyoti Bose
Follow
Feb 5
7 Free Public APIs you will love as a developer💖
#
javascript
#
webdev
#
programming
#
api
Reactions
13
reactions
Comments
Add Comment
3 min read
Get the day of the week in JavaScript without a library
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
Get the day of the week in JavaScript without a library
#
javascript
#
webdev
#
beginners
Reactions
2
reactions
Comments
Add Comment
3 min read
JavaScript double exclamation mark explained (with examples)
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
JavaScript double exclamation mark explained (with examples)
#
javascript
#
webdev
#
beginners
Reactions
2
reactions
Comments
Add Comment
4 min read
Javascript if/else shorthand explained (with common uses cases)
Reza Lavarian
Reza Lavarian
Reza Lavarian
Follow
Feb 5
Javascript if/else shorthand explained (with common uses cases)
#
javascript
#
webdev
#
beginners