List of questions
Related questions
Question 17 - AD0-E330 discussion
Review the code below and mark the correct option:
javascript
Copy code
var query = NLWS.xtkQueryDef.create({
queryDef: {
schema: 'nms:recipient',
operation: 'select',
lineCount: '5',
select: { node: [
{expr: '@firstName'},
{expr: '@lastName'},
{expr: '@email'}
]}
}
}).ExecuteQuery().getElements();
What would be the correct code to retrieve the email for each record?
A.
for (var i = 0; i < query.length; i++) { logInfo(query[i].$email); }
B.
for (var i = 0; i < query; i++) { logInfo(query[i].$email); }
C.
for (var i = 0; i < query.len; i++) { logInfo(query[i].$email); }
Your answer:
0 comments
Sorted by
Leave a comment first