Return to Video

Saloni explains how to Create a Function in Code studio

  • 0:05 - 0:11
    Now that you've edited function blocks, it's
    time to create a new function block from scratch.
  • 0:11 - 0:16
    It's really simple. You'll see the toolbox
    has a category called functions. If you click
  • 0:16 - 0:20
    on this, you'll see an orange button called
    create a function. Clicking on this brings
  • 0:20 - 0:26
    up the function editor that you've already
    used to edit existing function blocks. Just
  • 0:26 - 0:31
    like before, you started by naming your function,
    writing down a description for what the function
  • 0:31 - 0:36
    is supposed to do. For instance, it's supposed
    to draw a square or draw a triangle and then
  • 0:36 - 0:41
    drag blocks from the toolbox into the white
    work space below. Remember to drag these blocks
  • 0:41 - 0:47
    inside the green wrapping block for the function.
    Once you're done, click on save and exit.
  • 0:47 - 0:52
    This will take you back to the main puzzle
    work space. The new function you created will
  • 0:52 - 0:57
    show up as a green block in the function category
    in your toolbox. Drag and drop this into the
  • 0:57 - 1:01
    main work space and use it like any other
    block to solve the puzzle.
Title:
Saloni explains how to Create a Function in Code studio
Video Language:
English
Duration:
01:02

English subtitles

Revisions