Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

IBM Exam C5050-408 Topic 1 Question 4 Discussion

Actual exam question for IBM's C5050-408 exam
Question #: 4
Topic #: 1
[All C5050-408 Questions]

An application developer needs to access Worklight server properties that are defined in the worklight.properties file.

Which of the following method definitions will enable the application developer to access the local.IPAddress property?

Show Suggested Answer Hide Answer
Suggested Answer: B

Object WL.Server.configuration

A map that contains all the server properties that are defined in the file worklight.properties.

Syntax

WL.Server.configuration ['property-name']

WL.Server.configuration.property-name

Both syntaxes are equivalent. When the property name contains a period ('.'), for example local.IPAddress, the array index syntax must be used.

Example

var addr = WL.Server.configuration['local.IPAddress'];

References: https://www.ibm.com/support/knowledgecenter/SSZH4A_6.0.0/com.ibm.worklight.help.doc/apiref/ r_object_wl_server_configuration.html


Contribute your Thoughts:

Currently there are no comments in this discussion, be the first to comment!


Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77