bug or my error?

SyntaxError: Unexpected token after b:

cellTest = {
  prop: {
   a:"a",
   b:"b"
  }
}

Object declarations need to be wrapped in parentheses:

cellTest = ({
 // ...
})

Please see our documentation for details.

1 Like

Ah, you stumbled on one of the small differences between Observable’s syntax and JavaScript. Try

cellTest = ({
  prop: {
   a:"a",
   b:"b"
  }
})

You need to wrap the object definition in parentheses. Note, you are defining a cell, which is not the same as defining a variable in JavaScript. You can read more about it here:

(Looks like mootari beat me to it :slight_smile: )

1 Like

sorry, my error :smiling_face:

No worries! We need to do a better job at highlighting these differences. :pray: