Useful Functions in CodeCraft

In this chapter we'll develop two very useful functions in CodeCraft:

  • to build a block: block_m(x, y, z, m)
  • to build a column: column_m(x, z, h, m)

We'll use these two functions a lot later in this book:

  • to demonstrate the application of JavaScript basic knowledge.

  • to construct complicated structures with the JS basics.

  • to learn about advanced topics such as time delay, recursion, class/object( Object Oriented Programming), events/callback functions...

results matching ""

    No results matching ""