« first day (4058 days earlier)      last day (873 days later) » 

user17382064
2:56 AM
Create a players array means what?
 
user17382064
What does that mean I am supposed to do?
 
user17382064
This is not it then? const players = {}
 
user17382064
3:35 AM
add a function call to findPlayers() means?
 
user17382064
How is that done?
 
user17382064
vlaz
 
4:16 AM
 
Hey anyone available?
 
in a way
 
so I'm trying to finish this 7fe.github.io/keyboard.html
which let's you create custom keyboard layouts but I'm not sure if it is worth it.
What do you think?
Most people type on Qwerty but it is nice for a custom layout or something.
 
user17382064
4:36 AM
Kevin, add a function call to findPlayers() What am I supposed to do?
 
user17382064
How is that written?
 
user17382064
How do I add a function call to findPlayers()?
 
findPlayers.prototype.testing = function(){};
 
 
1 hour later…
6:10 AM
mary had a little lamb
 
 
1 hour later…
7:36 AM
Folks how do you debug into a module loaded by --require argument? #nodejs
 
hey
 
@hadie 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.
 
hello @JamesBot
 
I am trying to create a tsconfig.json file with default settings. But i can't. I get below settings.
tsc --init

Created a new tsconfig.json with:
TS
target: es2016
module: commonjs
strict: true
esModuleInterop: true
skipLibCheck: true
forceConsistentCasingInFileNames: true


You can learn more at https://aka.ms/tsconfig.json
 
@DamodaraSahu Are those not the default settings?
 
 
1 hour later…
8:55 AM
@VLAZ sorry i had some issue, problem solved.
 
9:10 AM
We are setting this as argument to the function...???
this should be a reserved keyword right?
 
9:25 AM
Ah well, that I guess is a feature of typescript...
var fn = function(this, foo, bar) {
  console.log('this:', this, 'foo:', foo, 'bar:', bar);
}
// below line will error
// fn(fn, 'four', 8)
fn.call(fn, 'four', 8)
Try this code in js and ts respectively to understand...
 
strict: true should always be used so you don't end up with code like that
It's the noImplicitAny I believe but strict: true enables it + other common sense checks.
 
good evening :)
 
@ashleedawg 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.
 
curious if anyone's noticed Codepen being weird or if its just me... a few little things, like CTRL+A isn't "selecting all" and CTRL+F doesn't open codepen's Find window
I tried Firefox and Chrome so I'm pretty sure it's not me but i never know
 
@ashleedawg reproduced it on my machine, so not just you.
 
9:41 AM
@VLAZ hooray! ...also, damn! thanks
 
10:31 AM
reminds me of wanting to watch Netflix with computer and it did not even start the video stream. The console was showing console errors
like that an update got released without even checking it. All browsers I had was experiencing it ... except Chrome.
found the issue: they used a new, experimental js feature that was not even supported
they clearly forgot to add that extra babel transpiler module in their build process
 
user17382064
10:51 AM
vlaz
 
user17382064
At the top of the init function I need to add a function call to findPlayers();

  function init() {
    manageCover.init({
      container: ".container",
      playButton: ".thePlay"
    });
 
user17382064
How do I do that?
 
user17382064
11:07 AM
Kevin, can you help?
 
11:50 AM
function init() {
   findPlayers();
    manageCover.init({
      container: ".container",
      playButton: ".thePlay"
    });
@htmlcssjava321 ^ like that?
Or what do you mean?
 
12:06 PM
Guys i'm suprised
why axios.put() doesnt works in my case, nodejs, react
although the response i got is 200
I've also console logged, req.body , it contains the desired value,
but not updating
I think i've solved
 
user17382064
12:22 PM
@VLAZ Yes, thank you.
 
6:49 PM
hello everybody , i have a problem with upload images in my react app , at the first they were uploaded and they become shown but then they dissapeard , and i got this error , Failed to load resource: the server responded with a status of 404 (Not Found) . i tried with other image and it was ok , they are all with same extension JPG , any help plz .
 
@MohamedYacineEssid 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.
 
@JamesBot ok thank you .
 
 
2 hours later…
8:50 PM
I just want to say hello to everyone and good mood. I am beginner in this chat. Am Sorry for bother.
 
@Schedule 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.
 
 
3 hours later…
user17382064
11:29 PM
:53523678 The init function is still failing to invoke the findPlayers function.

  function init() {
    findPlayers();
    manageCover.init({
      container: ".container",
      playButton: ".thePlay"
    });
 
user17382064
How is that fixed? jsfiddle.net/n5brauzg
 
user17382064
findPlayers is not defined
 
maybe that's related to the ()() syntax call used
 
user17382064
How would it be fixed?
 
I'm not quite up to explain in details what's up exactly with those, but I think it's an historical way to ensure some kind of scoping in javascript. I think I've already used that and found that I had to actually define the outside symbols in the first () and pass them in the call in the second ().
 
user17382064
11:43 PM
How should it be written?
 
tbh I forgot. maybe something like const stuff = (function im_actually_a_constructor(dependency))(outside_dependency_symbol); ?
of course you could also drop all of that, depending on why you're doing it at all
 

« first day (4058 days earlier)      last day (873 days later) »