« first day (4318 days earlier)      last day (644 days later) » 

10:05 AM
@ERLay Please don't post unformatted code - use the up arrow to edit your post, then hit Ctrl + K to format the code in that post. See the faq. You have 25 seconds to edit and format your message properly before it will be removed. Please separate code blocks from your actual question. Put your question in 1 message and then your code in a 2nd and format it.
For posting large code blocks, use a paste site like like gist.github.com, hastebin.com, pastie.org or a demo site like jsbin.com
@ERLay 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 message moved to Trash can
 
Hello, first time caller, long time listener.

I wondered if anyone could help? I am working on a react project and using a ternary to determine what to render to the UI.

Everytime the component mounts and renders the ternary, the else statement is always rendered to the screen, whilst evaluating. Is there a way around this, for example changing the way I evaluate?

`   !_.isEmpty(prop) ? (
                                        !somevalue ?
                                            <p>
                                                show this
 
one of my rules is if you have a nested ternary, then you're doing something wrong
you have to check why !_.isEmpty(prop) is being falsy.
 
 
3 hours later…
1:08 PM
Log out the function parameter of this function to the console.

  function isPlaylist(videoIds) {
    return Array.isArray(videoIds) && videoIds.length;
  }
How do I do that using console.log(); ?
 
1:18 PM
@EricaLevine what is function parameter here?
basically, it expects
function name(arguments) {
  console.log(...put_function_parameter_here...);
  return ...
}
 
@EricaLevine the task literally spells out what you need to do - where's the problem?
 
not the first time she's asking this kind of question here
I suspect language barrier.
I am off
/weekend
 
2:00 PM
How do I set up my VSCode (Mac) to automatically keep up to date with the repo?
 
@Dimoff 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.
 
 
4 hours later…
6:03 PM
0
Q: How to create a simple sdk using react

ChillaraDongaI would like to create a simple javascript sdk using react. This module just makes few api calls and renders the data. This should be embeded by any project react/angular/jquery . Any idea how to acheive this?

 
 
3 hours later…
9:30 PM
 
10:00 PM
posted on August 12, 2022 by Srinivas Sista

 The dev channel has been updated to 106.0.5231.2 for Windows, Mac & Linux. A partial list of changes is available in the log. Interested in switching release channels? Find out how. 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 about common issues. Srinivas Sista Google Chrome

posted on August 12, 2022 by Ben Mason

The Dev channel has been updated to 106.0.5231.2 for Windows, Mac and Linux. A partial list of changes is available in the Git log. Interested in switching release channels? Find out how. 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 about common issues. Srinivas Sista Google Chrome

 

« first day (4318 days earlier)      last day (644 days later) »