Salesforce Certified B2C Commerce Cloud Developer (Comm-Dev-101) Exam - Topic 1 Question 97 Discussion
A developer is asked to write a log containing the ID and name of the product with a variable named myProduct.Which snippet of code should be used?
A) Logger.warn('The current producto is {0} with name {1}', myProduct.getID(), myProduct.getName());
B) Logger.warn('The current producto is {0} with name {1}'), context(myProduct.getID(), myProduct.getName());
C) Logger.warn('The current producto is ${myProduct.getID()} with name ${myProduct.getName()}');
D) Logger.warn('The current producto is %s with name %s'), context(myProduct.getID(), myProduct.getName());
Kristofer
2 months agoHaydee
2 months agoTwanna
2 months agoCandra
2 months agoAngelyn
3 months agoOmega
3 months agoAvery
3 months agoYolande
4 months agoGlenna
4 months agoLinwood
4 months agoMozelle
4 months agoBettina
4 months agoDion
4 months agoWei
5 months agoBelen
5 months agoRegenia
5 months agoAlba
5 months agoAleisha
5 months agoGeorgiana
5 months agoStephane
6 months agoElmer
6 months agoTracey
6 months agoFloyd
6 months agoCaprice
6 months agoNadine
7 months agoGaston
30 days agoAleisha
1 month agoRodolfo
1 month agoJulian
2 months agoStephane
2 months ago