« first day (4277 days earlier)      last day (654 days later) » 

3:33 PM
Wonderful daytime! What online free JavaScript hard tests would you recommend to verify your knowledge if any? One friend suggests the following certificate to obtain. What do you think about such? Is it worth it, or is there any better to aim for? training.linuxfoundation.org/certification/jsnad
 
4:07 PM
How do I fix this? jsfiddle.net/xet40yv3
<div class="video video-frame" data-data-id="0dgNc5S8cLI"></div>
     it("checking the video for a video id", function() {
      //given
      video.dataset.dataid = "0dgNc5S8cLI";
      console.log(video.outerHTML);

      //when


      //then

    });
vlaz?
 
4:38 PM
Please be clearer @EricaLevine, have you created an issue instead of asking in the chat ?
 
@l-_-l 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.
 
your current support operator: @VLAZ [ducks and covers :)]
 
Sorry, what am I supporting?
Oh, I see. My name was mentioned.
I was wondering what's with the all thunder and lightning outside.
 
you've been summoned :)
 
Let's go in order, then
 
4:49 PM
|| mcve
 
We have troubles to understand and/or reproduce your problem(s). Please create a Minimal, Reproducible example which allows us to understand it better.
 
@Faither I wouldn't recommend any certificate. There isn't any that's really worth it. Maybe some people would take certificate as proof of knowledge, but many won't. To be honest, were I doing interviews and got a "I have this certificate" CV, I'd just disregard it entirely.
You can try some of the code challenge sites to practice, though. I used CodeWars in the past and it's OK. Although some of the tasks go really overboard with the premise: "Your brother deleted such and such method and your task is to re-create it". Just give me the task clearly, don't fabricate a stupid story for it.
 
@EricaLevine as a quick FIY, data-id does not translate to dataid, it translates to dataId
 
And some of the tasks are too easy. Yes, the tasks are ranked but in some cases, the description spells out every single thing you have to do, even for harder tasks. Which, while clear, isn't exactly fun.
But I haven't tried other code challenge sites. Maybe they do some stuff better or worse than CodeWars. Can't really say. Pick one and if you're not happy, try other ones.
 
4:55 PM
@EricaLevine if you assign to dataid, it will be translated as data-dataid attribute on the element, not to data-data-id, which is likely what you are asking for. But without an MRE, we can't know
 
5:12 PM
@EricaLevine I'm not really sure what should be happening in that test. Is it testing if data-videoid is set already? Or is it supposed to be setting it somehow and checking if that worked?
 
5:28 PM
hi Oleg Valter is with Ukraine
hi @Oleg Valter is with Ukraine
anyone here?
 
@VLAZ Thank you very much! Is there any alternative you would recommend in addition to CodeWars, anyone?
 
@OlegValteriswithUkraine do you mean copying the top part of the code and inserting it in my product page(which is where I also insert my image gallery component)?
 
@Faither Hakerrank and LeetCode are the two other ones I can name. I know there is many more, though.
 
5:44 PM
@VLAZ Awesome! Thank you very much!
 
6:27 PM
You are wonderful! Please have a pleasant time and stay safe! Farewell!
 

« first day (4277 days earlier)      last day (654 days later) »