nsTArraynums; nums.AppendElements({1, 2, 3});
nsTArrayThis code creates a new nsTArray called `strings` of type `nsString` (a Gecko string type) and uses the `AppendElements` method to add a single string value ("Hello, world!") to the end of the array. The `nsDependentCString` function is used to create a const char* pointer from the input string. Package library: Gecko SDK library.strings; const char* str = "Hello, world!"; strings.AppendElements(nsDependentCString(str));