Question 81 · 279 in bank
What is a benefit of JavaScript remoting over Visualforce Remote Objects?
Show answer
Answer: D
Explanation
D is correct. Either remote object or @remoteAction requires a JS callback,promise, async&await function to parse the JSON result from back-End to client side. For example, you can easily construct a wrapper class using @remoteAction in Apex where information from multiple queries or proxy variables can be brought together. For remote object you will need JS to do "promise.all" in order to cover that kind of wrapper in Apex, which will be very complex and hard to read
Source: Adapted from community discussion — Soliton321