« first day (4315 days earlier)      last day (629 days later) » 

1:30 AM
 
 
3 hours later…
4:29 AM
any idea why chrome inspector isn't selecting the line here
 
@barlop You have typed in the selector in the filter for the console, not in the search in the elements tab.
Press Ctrl+F to search in the Elements tab
 
ah, thanks!
 
5:01 AM
I can't see an id attribute on this element, so why is this xpath working?
 
It's an input inside an element with id="content"
 
ah I see, Thanks
 
 
2 hours later…
6:53 AM
Suppose you have <input type="file"> and you want to use the javascript console to stick a file in there.. Is that possible, and if so, then how would you do that? Thanks
 
@barlop possible? no.
 
why not?
 
security
if you can set it by console, then you can set it by javascript code. If I host a website, I can set some files with known default paths and upload them at my own. The visitors will become my victim
 
7:13 AM
ah, makes sense, thanks.
explains why selenium could but javascript can't
 
 
5 hours later…
12:31 PM
what kind of array syntax is this?

const [, otherProps] = splitProps(props, ["label"]);
 
12:51 PM
array assignment
not 100% sure
|| mdn destructuring assignment
 
here you go
 
 
2 hours later…
3:07 PM
@SuperUberDuper array destructuring syntax
Note: the name doesn't meant that you only destructure arrays. But it's the most used name for this kind of destructuring. It actually works by calling the iterator of the right-hand side. So, anything iterable can be destructured this way.
 
3:22 PM
thx
 
@VLAZ the mdm doc I linked names it differently, huh
 
ah did not consult examples (did not need to because I "got" it from the proposal earlier....)
 
if we are to be pedantic, the spec name is "destructuring assignment" with "object/array" "assignment pattern" :)
 
3:38 PM
so we're both half right
making us one?
 
guess so :) nobody uses the spec naming anyways
 
It's just two mechanisms that are broadly related to one another in intent but are otherwise not actually part of the same thing: Array destructuring - it unpacks iterable values sequentially; and object destructuring which does named unpacking. Very broadly, both are application of unification. Less-but-still broadly, they result in new variables being declared. But the actual mechanism involved in resolving them is quite different
 
yea, the evaluation mechanism under the hood differs for object and for array destructuring.
 
4:00 PM
aye
 
 
2 hours later…
6:30 PM
Hi, Does anyone Know an IP api provider whitout mixed content issue?
 
@Milad.eb96 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.
 
so...In react a comparison is being made between Real DOM and VDOM is made and if diff found than this results in DOM update.....am I correct?
 
6:59 PM
in one way or another
 

« first day (4315 days earlier)      last day (629 days later) »