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
3 months agoHaydee
4 months agoTwanna
4 months agoCandra
4 months agoAngelyn
4 months agoOmega
4 months agoAvery
5 months agoYolande
5 months agoGlenna
5 months agoLinwood
5 months agoMozelle
6 months agoBettina
6 months agoDion
6 months agoWei
6 months agoBelen
6 months agoRegenia
6 months agoAlba
7 months agoAleisha
7 months agoGeorgiana
7 months agoStephane
7 months agoElmer
7 months agoTracey
8 months agoFloyd
8 months agoCaprice
8 months agoNadine
8 months agoGaston
2 months agoAleisha
3 months agoRodolfo
3 months agoJulian
3 months agoStephane
3 months ago