Accenture Primer
Accenture DumpeasyAccenture PrimerPrimer-Dump

in javascript what will be returned by the following code snippet?

Answer options

A
Document.write(new date().getmonth());
B
month as number from 0 to 11

Correct answer: month as number from 0 to 11

Explanation

The source marks the correct answer as: month as number from 0 to 11.

Related Accenture Accenture Primer questions

Practice more Accenture Accenture Primer questions

PrimerDumps has 1400+ primer questions, 2026 mocks and coding hands-on — all free.