Skip to content

Instantly share code, notes, and snippets.

@daominhsangvn
Created January 12, 2018 08:05
Show Gist options
  • Save daominhsangvn/068abe092c0c0e8429c6368ad528cc20 to your computer and use it in GitHub Desktop.
Save daominhsangvn/068abe092c0c0e8429c6368ad528cc20 to your computer and use it in GitHub Desktop.
Interview questions and awnsers

Javascript

  1. How to create a copy of an array such that changes to the old array will not be reflected in the new array?
// affected by using splice, pop, unshift, push...
var newArray = oldArray.splice(0);
  1. Function prototype?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment