Message from JavaScript discussions

November 2020

— Y... yeah

— 

Hello, any easy way to know it's been 24hours to the current marked hour ?

E.g
const markedHour = new Date().getHours();
//cache marked hour somewhere to compare to current hour.

const currentHour = new Date().getHours();

if comparison//

— Https://djaytechdiary.com/realtime-graphql-subscriptions-with-nodejs

— Hi

— How can I access static properties of a derived class from a static method

— But should they have to?

— You're just wasting your contributors' time if you want to have them dig through docs to do a single-line change and test it

Message permanent page

— You'll get more contributions if you make it as easy as possible for them

— const start = Date.now();

// run this every 5s, 10s, 60s, or however often is appropriate
if (start + 1000 * 60 * 60 * 24 >= Date.now()) {
console.log('it has been 24 hours');
}

Message permanent page

— Https://timkadlec.com/remembers/2020-11-02-skeleton-screens/

— No man, substraction is the base

— Console.log('Hello to the JavaScript Party')