Skip to content
← Back to Community
Coding Challenge
Profile icon
dsbaluch

Construct a function intersection that compares input arrays and returns a new array with elements found in all of the inputs.

Voters
Profile icon
OliverHolworth1
Profile icon
BrianPark3
Profile icon
wardkott
Profile icon
Boozmcooz
Profile icon
dsbaluch
Comments
hotnewtop
Profile icon
dsbaluch

@kaldiberzins
, thank you so much for your comment. I will avoid using var.

Profile icon
kaldisberzins

Small bit of advice, seems like you use var and let interchangeably. I recommend using only let for variables that will change and const for variables that will not.