valueOf (string)
  • Dark
    Light
  • PDF

valueOf (string)

  • Dark
    Light
  • PDF

valueOf (string) Task Purpose

The stringValueOf task is used to return the primitive value of a string object as a string data type. Primitive value is essentially data that is stored directly in the location the variable accesses.

Potential Use Case

Rarely will this method be used in data manipulation; however, it is useful when you need to convert different types of values into a string.

Properties

Input and output parameters are shown below.

Incoming Type Description
str String Required. The string to get the value of.


Outgoing Type Description
string String A string representing the primitive value of a given string object.

Example

In this IAP example, the str variable is listed as Hello World.

valueOf-01

The string is validated and the expected result will be "Hello World" contained within double quotation marks.

valueOf-02


What's Next
Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.