3 ms·
I attempted to use Stack Overflow about a week ago. In regards to a Javascript problem I was having. I do not know this language very well (at all) When it com
by bigger_cheese 9y ago
I attempted to use Stack Overflow about a week ago. In regards to a Javascript problem I was having. I do not know this language very well (at all) When it comes to JS I am deinately a newbie.
I kept on getting "undefined object" when I was trying use return value from an (external) library function. I could see in web browser debugger there was data but it wouldn't let me return. All the top results in google involving the libraries name + undefined object were from Stack Overflow and they did a decent job of explaining why I was experiencing the issue (in my case I was trying to mix synchronous and Asynchronous code). However pretty much all the suggested solutions were misleading - they all talked about using something called a callback.
I found a blog post buried among the other google results that had better solution - to use something called a "Promise". After doing some more googling I found out the Promise syntax is very recent (added in 2017) and the answers I was looking at from Stack Overflow were all from 2011-ish so rather frustratingly Stack Overflow was full of outdated information. The old topics were locked and I could not edit them so no way of helping other new users like myself who might be running into same issue - especially given these answers appear so high in google it was a frustrating experience.
- jacobush 9y agoTrue but you could add your own answer.