ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 134 - Certified JavaScript Developer I discussion

Report
Export

Refer to the code below:

let o = {

get js() {

let city1 = String("st. Louis");

let city2 = String(" New York");

return {

firstCity: city1.toLowerCase(),

secondCity: city2.toLowerCase(),

What value can a developer expect when referencing o.js.secondCity?

A.
Undefined
Answers
A.
Undefined
B.
' new york '
Answers
B.
' new york '
C.
' New York '
Answers
C.
' New York '
D.
An error
Answers
D.
An error
Suggested answer: B
asked 23/09/2024
Albert Tedjadiputra
35 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first