Multiple choice technology enterprise content management

var obj = objectManager.createTextObject("Hello", "MyHello") obj.name = "Hello" obj.text = "MyHello" What happens when the following code is executed.

  1. A Text Object by Name:- MyHello and text value:- MyHello gets created in the database.

  2. A Text Object by Name:- MyHello and text value:- Hello gets created in the database.

  3. A Text Object by Name:- Hello and text value:- MyHello gets created in the database.

  4. Nothing is created, as one 'key/important statement' is missing in the code.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In this specific object manager API, the first parameter of createTextObject represents the text content ("Hello") and the second represents the name ("MyHello"). The subsequent assignments swap these values, setting the name to "Hello" and text to "MyHello".