ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 145 - Certified JavaScript Developer I discussion

Report
Export

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) {
Answers
A.
function leg(logInput) {
B.
const log(loginInput) {
Answers
B.
const log(loginInput) {
C.
const log = (logInput) => {
Answers
C.
const log = (logInput) => {
D.
function log = (logInput) {
Answers
D.
function log = (logInput) {
Suggested answer: A, C
asked 23/09/2024
frederic Morteau
31 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first