« first day (4021 days earlier)      last day (923 days later) » 

2:06 AM
If([]) and if({}) evaluates to true but []==true and {}==true evaluates to false. Why such happens? Are there any other values works in such way?
 
 
1 hour later…
3:16 AM
[]==false and {}==false evaluates to true. Why?
 
 
3 hours later…
5:57 AM
8
Q: If an array is truthy in JavaScript, why doesn't it equal true?

zulukI have the following code snippet: if([]) { console.log("first is true"); } The console says first is true which means [] is true. Now I am wondering why this: if([] == true) { console.log("second is true"); } and this: if([] === true) { console.log("third is true"); } are not true...

@DamodaraSahu [] == false - both operands are converted to a number, so the final check is 0 == 0
However, {}==false does not return true and it cannot, it produces false
||> ({}==false)
 
@VLAZ 'SyntaxError: Unexpected token \'==\'' Logged: [ ] Took: 0ms
@VLAZ false Logged: [ ] Took: 1ms
 
 
3 hours later…
8:45 AM
I'm always weirded out that people actually use == or !=.
 
@VenkataShivaram hello no this error appair when i run on device my app and in the simulateur all works fine (exactly when i do the authentification user ) in the Simulator and Emulator works fine but in the device Phone with EXPO client i get the message error
 
@makadev It's the correct comparison operator in almost any other language. So, it's a common pitfall but it's also JS's fault for having unintuitive rules for handling it.
Also, in fairness the whole usage of == is a bad pattern since before JS existed. controversial stance - equality check should be = as that actually trips up more people in more languages. Assignment should have a different symbol associated with it.
But that's been conceptually broken for half a century now. Hard to fix all of programming.
 
I'm getting flashbacks from my first steps in C after doing a lot of Pascal
 
9:43 AM
new Boolean(true); In VSCode,when I apply valueOf() on it and hover on valueOf, I see, (method) Boolean.valueOf(): boolean. When I apply toString() on it and hover on toString(), I see, (method) Object.toString(): string. Why, in this case, I don't see, (method) Boolean.toString(): string?
 
¯\_(ツ)_/¯ I don't know how VS Code determines what to show you. toString() exists on Boolean, so I can say that VSCode is wrong here.
 
10:10 AM
Seems it is a bug in the typedefinition file that vscode seems to use as default: github.com/microsoft/TypeScript/issues/38347
 
11:02 AM
Hi All,
I need some info about Microsoft azure, I have created the app and configured the secretId
but the problem is the secretId is expiring and I'm getting this issue
{"message":"AVDZTT7111333: The provided client secret keys are expired. Visit the Azure Portal to create new keys for your app, or consider using certificate credentials for added security:}
how can I configure it so it always live on the production integration and never expires
 
user16050054
11:57 AM
Hi guys, need your help!Can anyone send me videos or books related to GraphQl and apolloa client.Want to learn from a to z
 
2:38 PM
Object.prototype results different value in nodejs and browser environment. Why? I saw, in nodejs, it's value is {}. So in nodejs how does the functions such as valueOf,toString,hasOwnProperty works on Object.prototype?
 
hi
i'd assume that's a flaw (or difference in functionality) in whatever you're using to determine that prototype's value is {}
Why?
 
Yeah, I saw, in nodejs the value of every prototype object is {}. So where does these functions are defined?
 
3:00 PM
@VLAZ jsfiddle.net/BeerusDev/y154w9mz/10 "Uncaught TypeError: undefined is not a function"
 
Fellow javascripters, how can one tell whether all of the elements required to render a div and its child tree (including images, video...) have been loaded into the DOM?
Do I need to manually traverse the tree, store things that load, and add onload callbacks to each to check?
 
3:28 PM
@BeerusDev missing argument 0 when calling function Array.prototype.find" you still need to pass a callback to the method. I left it out because I don't know what you want to search there.
@DamodaraSahu It's not different. The console representation is different for the same data. There is no standard for consoles and it's a very good idea to not rely on console view as the one and only truth. Different consoles can choose to show the same thing in various ways. E.g., maybe they sort the keys, maybe not. maybe they show prototype properties, maybe not.
 
Gotcha
 
4:15 PM
Hi
 
@BunthaiDeng Welcome to the JavaScript chat! Please review the room rules. If you have a question, just post it, and if anyone's free and interested they'll help. If you want to report an abusive user or a problem in this room, visit our meta.
 
 
1 hour later…
5:44 PM
posted on October 19, 2021 by Harry Souders

Hi, everyone! We've just released Chrome 95 (95.0.4638.50) for iOS: it'll become available on App Store in the next few hours. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Harry Souders Google Chrome

 
Why I still can't post questions on SO? is the site still down?
 
probably cache
try closing your browser entirely
@duhaime you would need to traverse the tree
the load event doesn't bubble, so you'd literally have to find each and every one of them
 
Question ban?
 
Not sure I have done anything out of ordinary to be banned.
the button that says Review your question, won't do anything.
 
6:09 PM
Thanks. It actually solved the issue when i tried one of the comments on the link. I simply went back and reload the page and then forward to the posting question page and it worked strangely.
 
6:44 PM
posted on October 19, 2021 by Prudhvikumar Bommana

The Chrome team is delighted to announce the promotion of Chrome 95 to the stable channel for Windows, Mac and Linux. This will roll out over the coming days/weeks. Chrome 95.0.4638.54 contains a number of fixes and improvements -- a list of changes is available in the log. Watch out for upcoming Chrome and Chromium blog posts about new features and big efforts d

 
ya, that's what I resolved to do
 
posted on October 19, 2021 by Srinivas Sista

The Extended Stable channel has been updated to 94.0.4606.101 for Windows and Mac which will roll out over the coming days/weeks. A full list of changes in this build is available in the log. Interested in switching release channels? Find out how here. If you find a new issue, please let us know by filing a bug. The community help forum is also a great place to reach out for help or learn abou

 
!!spell or attack
 
attack
 
!!range or melee
 
6:54 PM
melee
 
hmm
it's like james knows what i like
 
7:38 PM
posted on October 19, 2021 by Ben Mason

Hi, everyone! We've just released Chrome 95 (95.0.4638.50) for Android: it'll become available on Google Play over the next few days. This release includes stability and performance improvements. You can see a full list of the changes in the Git log. If you find a new issue, please let us know by filing a bug. Ben Mason Google Chrome

 
8:24 PM
@VLAZ I was successful in the other method, but would like to try the generator functions but I do not fully understand what is going on in this
 
8:53 PM
Hi everyone my when I send data to dynamoose on ec2 I do not get the data on my aws dynamoose
 
9:26 PM
posted on October 19, 2021 by Daniel Gagnon

The Dev channel is being updated to 96.0.4664.13 (Platform version: 14268.9.0) for most Chrome OS devices. If you find new issues, please let us know by visiting our forum or filing a bug. Interested in switching channels Find out how. You can submit feedback using ‘Report an issue...’ in the Chrome menu (3 vertical dots in the upper right corner of the browse

 

« first day (4021 days earlier)      last day (923 days later) »