Message from JavaScript discussions

May 2019

— Hey, is there efficient way to solve. If so them pls help.

Message permanent page


JS Challenge

Write a function that accepts array of numbers and a rotate factor and rotate the array by the rotate factor to the left without the use of inbuilt methods.

rotateArr([1, 2, 3, 4], 2);
// [3, 4, 2, 1]

— Easy. Cmon

— For loop and shift and push

— Thats a great way to let other solve your problems if you are unable to. Make it a "challenge"

— Yea but it's quite easy.

— And I was introduced to JS a month prior.

— Rahul ur current city

— Delhi

— Ok

— Guys I need help

— I coded a very simple script and it doesn't work on IE