Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 5 Question 66 Discussion
Given the following snippet:Server.append( 'Show' , function (req, res, next) )According to SFRA, which two options shows a correct way to complete the code above in order to providedata to the response using a controller?Choose 2 answers
C) res.render('/content/myPage',{
data: myDataObject
});
next();
});
A) res.viewData = {
data: myDataObject
};
res.render('/content/myPage');
next();
});
B) res.setViewData ({
data: myDataObject
});
res.render('/content/myPage');
next();
});
D) res.render('/content/myPage');
next();
}).append{(
Data:myDataObject
});
Marshall
6 months agoArdella
6 months agoLauran
7 months agoMarion
7 months agoLou
7 months agoAugustine
7 months agoHannah
8 months agoTrina
8 months agoArleen
8 months agoLisbeth
8 months agoLavera
8 months agoAlonzo
8 months agoAlona
8 months agoVicki
8 months agoBlair
8 months agoLisbeth
8 months agoToi
8 months agoShakira
8 months agoGracia
8 months agoShelba
1 year agoKerry
12 months agoFletcher
1 year agoLino
1 year agoLindsey
1 year agoTanesha
1 year agoAnglea
12 months agoLizbeth
12 months agoChaya
12 months agoBeula
1 year agoAndra
1 year agoJarod
1 year agoDan
1 year agoTammy
1 year agoCorinne
1 year agoMarsha
1 year agoGregoria
1 year agoLaila
1 year agoLindsey
1 year agoTeri
1 year ago