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