Question: How do you return "October" from x in this code?

  1. attr()
  2. months(x)
  3. as.month(x)
  4. month(x)

Answer: The correct answer of the above question is Option B:months(x)