Skip to content

Instantly share code, notes, and snippets.

@McLarenCollege
Last active March 3, 2022 06:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save McLarenCollege/4341987293a0e2f315e188c9649390e8 to your computer and use it in GitHub Desktop.
Save McLarenCollege/4341987293a0e2f315e188c9649390e8 to your computer and use it in GitHub Desktop.
Exercise : Increment Element

Given the following array write the expression to increment the element 11 by 1 and submit the Object Diagram.

CODE TEMPLATE


let arr = [[[1,[10,11]],[5,6]],[2,3],[5,6]];
//write your code here
console.log(JSON.stringify(arr));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment