r/javaScriptStudyGroup • • Jul 16 '23

What are JavaScript promises, Async Await and Callback hell explained in 5 minutes

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Jul 13 '23

How to avoid typescript as a pure JavaScript developer | Type checking in JavaScript

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Jul 09 '23

Is string/number also an object in JavaScript?

Thumbnail
youtube.com
2 Upvotes

r/javaScriptStudyGroup • • Jul 07 '23

๐Ÿ—๏ธCreate React App Using Vite

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jul 07 '23

Frontend development is Hard. Here's why

Thumbnail
youtube.com
0 Upvotes

r/javaScriptStudyGroup • • Jun 29 '23

5 async await best practices in JavaScript

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Jun 25 '23

For siblings and logo, course instructor creat with closest and I try with straight parent element.Both worked.But I want to know the difference.Sry for my english

Thumbnail
gallery
0 Upvotes

r/javaScriptStudyGroup • • Jun 24 '23

Proxy Pattern in JavaScript | Design Patterns in JavaScript Part 2/15 | Code + In-depth explanation

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Jun 23 '23

What is Blue Green Deployment And How it Works | Blue - Green Strategy | Frontend Tutorials |

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jun 21 '23

Help me in this

1 Upvotes

I'm not able to solve a basic javascript program that literally depresses. I have watched many tutorials but when I try to solve basic programs from gfg ,leetcode. I failed every time. What should I do kindly help


r/javaScriptStudyGroup • • Jun 20 '23

Authentication vs Authorization Explained

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • Jun 19 '23

Infinite Scroll | JavaScript

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jun 18 '23

Become a web developer yourself | HTML TUTORIAL

Thumbnail
youtu.be
1 Upvotes

r/javaScriptStudyGroup • • Jun 16 '23

๐Ÿš€ JavaScript Tip: Use the Optional Chaining Operator (?.) for Safe Property Access

Thumbnail
self.welovecodes
1 Upvotes

r/javaScriptStudyGroup • • Jun 16 '23

Uhh I have a problem with node

1 Upvotes

So I'm a beginner to programming in general and I'm following this course on youtube, he shows how to pull up the terminal and he then showed this line "node (filename).js" and its supposed to execute the code. for me it did not, and I have no idea what the issue is. can someone help me figure it out?


r/javaScriptStudyGroup • • Jun 13 '23

*NEW* Loading animation tutorial: Create a dynamic and stylish loader using HTML, CSS and JavaScript

Thumbnail
youtu.be
3 Upvotes

r/javaScriptStudyGroup • • Jun 13 '23

๐Ÿš€ JavaScript Tip: Take Advantage of Destructuring Assignment

Thumbnail
self.welovecodes
0 Upvotes

r/javaScriptStudyGroup • • Jun 12 '23

Advanced Vanilla JavaScript Tip: Functional Programming with Higher-Order Functions

Thumbnail self.welovecodes
1 Upvotes

r/javaScriptStudyGroup • • Jun 04 '23

why does my code only pass 3 test casses instead of 8?

1 Upvotes

I recently took an assesment from smoothstack and the coding challenge only passed me for three test casses when I was trying for all 8.

This is the problem statement:

you are given a set of meetings start times and duration. you will determine if there is a meeting conflict, and also the number of conflicts and total conflic time. a conflict in this case is defined as a time overlap between two meetings. For instance (assuming military time format 000 - 2400), if meeting A begins at 0830 and its duration is 45minutes. meeting B begins at 830 and its duration is 30 minutes. Then it is easy to tell that there is indeed a meeting conflist between A and B. The number of conflict is 1. (note that meeting A conflicts with meeting B --> implies that meeting B conflicts with meeting A. So we count this only once) Finally the total conflict time here is 15 minutes. Also note the time slots are exclusive and not inclusive of the time. For instance if meeting B began at 0845 instead, then is no conflict.

This is my Solution in JS:

function checkMeetingConflicts(meetings) {
  let conflicts = 0;
  let totalConflictTime = 0;
  let hasConflict = false;

  for (let i = 0; i < meetings.length - 1; i++) {
    const meeting1 = meetings[i];
    const meeting1Start = meeting1.start;
    const meeting1End = meeting1.start + meeting1.duration;

    for (let j = i + 1; j < meetings.length; j++) {
      const meeting2 = meetings[j];
      const meeting2Start = meeting2.start;
      const meeting2End = meeting2.start + meeting2.duration;

      if (meeting1Start < meeting2End && meeting2Start < meeting1End) {
        // There is a conflict between meetings i and j
        hasConflict = true;
        conflicts++;

        // Calculate the overlap time between the two meetings
        const overlapStart = Math.max(meeting1Start, meeting2Start);
        const overlapEnd = Math.min(meeting1End, meeting2End);
        const overlapTime = overlapEnd - overlapStart;

        totalConflictTime += overlapTime;
      }
    }
  }

  if (!hasConflict) {
    return "No conflicts";
  } else {
    return {
      conflicts: conflicts,
      totalConflictTime: totalConflictTime,
    };
  }
}

// Sample input
const meetings = [
  { start: 800, duration: 45 },
  { start: 830, duration: 30 },
];

// Call the function
const result = checkMeetingConflicts(meetings);
console.log(result);

What the hell am I actually doing wrong if so?

why only 3 test casses instead of 8?


r/javaScriptStudyGroup • • Jun 04 '23

10 DSA concepts every JS developer MUST know for coding interviews (Data Structures & Algorithms)

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • May 31 '23

Best JavaScript Frameworks for Mobile App and Web Development

Thumbnail
technource.com
2 Upvotes

r/javaScriptStudyGroup • • May 27 '23

[AskJS] Frameworkless, functional javascript discord/matrix community?

Thumbnail self.javascript
2 Upvotes

r/javaScriptStudyGroup • • May 27 '23

Should You Accept Cookies On Websites?

Thumbnail
youtube.com
1 Upvotes

r/javaScriptStudyGroup • • May 26 '23

Java vs JavaScript

Thumbnail
technource.com
1 Upvotes

r/javaScriptStudyGroup • • May 23 '23

The Truth About Tailwind CSS - Should you join the hype in 2023?

Thumbnail
youtube.com
1 Upvotes