M

Mr. Dubey • 52.48K Points
Coach

Q. Which is a more formal way of importing packages and classes as JavaScript objects?

  • (A) import(java.util.*);
  • (B) importClass(java.util.*);
  • (C) import.Class(java.util.*);
  • (D) Class.import(java.util.*);
  • Correct Answer - Option(B)
  • Views: 51
  • Filed under category JavaScript

Explanation by: Mr. Dubey
Because packages and classes are represented as JavaScript objects, you can assign themto variables to give them shorter names. But you can also more formally import them, if you want to:

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics