Exam4Training

Which three console logging methods allow the use of string substitution in line 02?

A developer creates a generic function to log custom messages in the console.

To do this, the function below is implemented.

01 function logStatus(status){

02 console./*Answer goes here*/{‘Item status is: %s’, status};

03 }

Which three console logging methods allow the use of string substitution in line 02?
A . Assert
B . Log
C . Message
D . Info
E . Error

Answer: A,D

Exit mobile version