Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 1.61 KB

data-join.md

File metadata and controls

31 lines (26 loc) · 1.61 KB

data join

Random alphabet demo

To understand the links above, you should recognize how the code below works.

{
  while (true) {
    yield randomLetters()
    await Promises.tick(1000)
  }
}
  • In a nutshell: the cell updates every second (1000 milliseconds) with the return value of randomLetters()
  • You can copy and paste this cell into one of the Observable notebook links above (where randomLetters is defined).
  • Introduction to Promises is a good reference.
  • Note: The comment at the end regarding selection.call() is a technique that enables method chaining.