About 18,200 results
Open links in new tab
  1. Array - Microsoft MakeCode for micro:bit

    You get and change the values of items at different places in an array. You find items in an array by knowing their positions. Arrays are flexible, they can grow and shrink in size. You can add …

  2. Arrays - Microsoft MakeCode for micro:bit

    unshift Add one element to the beginning of an array and return the new length of the array.

  3. Introduction - Microsoft MakeCode for micro:bit

    So, in the Rock Collection above, the length of the array is 5 (it can hold 5 rocks), and the index of the last element is 4. In MakeCode, you can create an array by assigning it to a variable. The …

  4. create - Microsoft MakeCode for micro:bit

    One item array You can create and initialize an array with an item. Arrays created with at least one item automatically have the type of the item. This is called a type inference.

  5. Project: Musical instrument

    This is a project in which you are challenged to create a musical instrument that uses arrays to store sequences of notes. The array of notes can be played when an input occurs, such as …

  6. pop - Microsoft MakeCode for micro:bit

    The last element in the array is removed, so the array becomes smaller by one element. If you have an array with 4 numbers, like 1, 2, 3, and 4, you remove the last number from the array …

  7. insert At - Microsoft MakeCode for micro:bit

    The element is added to the array at the position you want. If there’s an element already at that position, then it and all the other elements after it are moved (shifted) to the next higher position.

  8. Arrays - Microsoft MakeCode for micro:bit

    Learn common Array operations such as setting and getting values by index. Demonstrate understanding and apply skills by creating a musical instrument that uses a micro:bit and a …

  9. Unplugged: Different sorts - Microsoft MakeCode for micro:bit

    In a selection sort, multiple passes over the array are made to determine the smallest number on that pass. That smallest number is then swapped with the number on the end, and the next …

  10. Activity: Headband charades and starry starry night

    May 3, 2013 · To create an array, you need to set the value of a variable to the array. From the Variables Toolbox drawer, drag out the ‘set item’ block and attach a ‘create array with number’ …