Please correct below code sample in Zoom Apps JSSDK doc
zoomSdk.removeVirtualBackground().then(function() => {
// background was successfully removed
})
.catch(function(error) => {
// there was an error removing the virtual background
})
In the above code block either use the function keyword or arrow operator inside callbacks like below
Callbacks with the function keyword
zoomSdk.removeVirtualBackground().then(function() {
// background was successfully removed
})
.catch(function(error) {
// there was an error removing the virtual background
})
Callbacks with arrow operator
zoomSdk.removeVirtualBackground().then(() => {
// background was successfully removed
})
.catch((error) => {
// there was an error removing the virtual background
})
Here is the doc link.