Which two options can correctly replace line 01 and declare the function for use?

A developer wants to define a function log to be used a few times on a single-file JavaScript script.

01 // Line 1 replacement

02 console.log(‘"LOG:’, logInput);

03 }

Which two options can correctly replace line 01 and declare the function for use? Choose 2 answers
A . function leg(logInput) {
B . const log(loginInput) {
C . const log = (logInput) => {
D . function log = (logInput) {

Answer: A,C

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments