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
Latest JavaScript Developer I Practice Questions with 144 Q&As
Updated Study Material | Instant Download | Detailed Answers and Explanations
Subscribe
Login
0 Comments