SyntaxError: Unexpected token after b:
cellTest = {
prop: {
a:"a",
b:"b"
}
}
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.
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 )
sorry, my error
No worries! We need to do a better job at highlighting these differences.