Skip to content
  • Home
  • Articles
  • Screencasts
  • Projects
  • About
  • Resources
  • Screencasts
  • Today I learned
  • Things I use
  • Talks
  • Newsletter
  • Home Home
  • Articles Articles
  • Screencasts Screencasts
  • Projects Projects
  • About About
  • Newsletter
  • Other Stuff
    • Blogroll People blogging great stuff.
    • Resources Bookmarks I want to keep for later.
    • Show some love Support my blog and newsletter.
    • Talks Talks I've given at conferences.
    • Things I use My hardware and software setup.
    • Today I learned 213 #TIL posts.
Stefan on Mastodon Stefan on Twitter RSS

Topic: JavaScript โ€“ Page 19

  1. Measuring execution time more precisely in the Browser and Node.js

    Published Sep 18 2017 in JavaScript , NodeJS

    It's always good to know how much time code needs to be executed. Today I learned there is a more precise way than using the Date object.

  2. Await in async functions works for any thenable

    Published Sep 05 2017 in JavaScript

    Today I discovered that await is more flexible than I thought because it doesn't work only on promises.

  3. isNaN is not equal Number.isNaN

    Published Aug 26 2017 in JavaScript

    In ES6 the static method isNaN was added to the Number prototype. It looks the same behaves slightly different...

  4. includes really is the better indexOf

    Published Aug 08 2017 in JavaScript

    I learned about an edge case in 'Array.prototype.indexOf' which is fixed in 'Array.prototype.includes'

  5. localeCompare helps to compare strings in a sane manner

    Published Aug 07 2017 in JavaScript

    I learned how to compare strings in a sane manner using 'String.prototype.localCompare'.

More JavaScript content

  1. Previous page
  2. Page 19 of 24
  3. Next page

Most popular posts

  • A new method to validate URLs in JavaScript (2023 edition)
  • How to import JSON files in ES modules (Node.js)
  • APIs to generate random user avatars
  • Top-level await is available in Node.js modules
  • How to use headless Chrome in serverless functions with a 50MB limit
Read popular posts

Weekly newsletter

Weekly newsletter all around web development

Get weekly news

TIL: Today I learned in Web Dev

  • How to escape CSS selectors in JavaScript
  • Self-closing tags are mostly meaningless in HTML
  • How to use EventTarget as a web-native event emitter
Learn something new

Blogroll

15 random RSS feeds I'm subscribed to. ๐Ÿ‘‡

Discover fantastic blogs

Other stuff

Topics

  • JavaScript (117 posts)
  • CSS (89 posts)
  • Tools (56 posts)
  • HTML (41 posts)
  • Bash (40 posts)
  • NodeJS (35 posts)
  • Accessibility (27 posts)
  • Web (22 posts)
  • git (20 posts)
  • Performance (19 posts)
  • macOS (15 posts)

Web Dev Learnings

  • Skipped holes in JavaScript Arrays
  • CSS Grid can be used to stack elements
  • CSS media queries can be nested
  • inset โ€“ the shorthand for top, right, bottom and left CSS properties
  • The dot in RegExp doesn't match all characters in JavaScript
  • CSS defines functions to repeat gradients

Popular articles

  • A new method to validate URLs in JavaScript (2023 edition)
  • How to import JSON files in ES modules (Node.js)
  • APIs to generate random user avatars

Recently updated resources

  • Timeless articles
  • Job hunt and interviewing
  • A Firefox-only minimap
ยฉ 2023 Copyright Stefan Judis. All rights reserved.
โ™ฅ๏ธ