javascript - Why am I getting the error is not a function here? - Stack Overflow

Опубликовано: 21 Апрель 2026
на канале: ResponseXAI
5
0

When you're in a promise return, or in a timer, your this changes.

isInTimeSlot() {
return new Promise((resolve, reject) => {
var date = new Date()
var hour = date.getHours()
hour

#console #(hour #resolve(1337) #setınterval(function() #this
https://stackoverflow.com/questions/3...

https://stackoverflow.com/questions/3...