Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script id="jsbin-javascript">
- //write your answers below
- var contacts = ['Matt Smith', 'Sam Davis', 'Ashley Jones']
- var findContact = function(index){
- return contacts(index);
- var newContact = function(name){
- newContact.push(name);
- return contacts;
- }
- var updateLastContact = function(new name) {}
- updateLastContact.push(new name);
- return contacts;
- }
- </script>
- <script id="jsbin-source-javascript" type="text/javascript">//write your answers below
- var contacts = ['Matt Smith', 'Sam Davis', 'Ashley Jones']
- var findContact = function(index){
- return contacts(index);
- var newContact = function(name){
- newContact.push(name);
- return contacts;
- }
- var updateLastContact = function(new name) {}
- updateLastContact.push(new name);
- return contacts;
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement