Question: Got this programming assignment ( JavaScript ) and one of the questions include a certain method: Takes in the join year and the last active

Got this programming assignment (JavaScript) and one of the questions include a certain method:
"Takes in the join year and the last active year of another user and returns true or false, depending on
whether the two users were active on the social network during the same period."
I need help with the algorithm to code this. Thought about doing a bunch of if-else statements, but it wouldn't be efficient. Any other ideas?
Got this programming assignment ( JavaScript )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!