# write

## Description

Using this function will display the output/result in the browser console.

## Input / Parameter

| Name  | Description                                                                          | Input Type  | Default | Options | Required |
| ----- | ------------------------------------------------------------------------------------ | ----------- | ------- | ------- | -------- |
| value | The output to be shown in the browser console, such as characters, numbers or words. | String/Text | -       | -       | Yes      |

## Output

| Description                                   | Output Type |
| --------------------------------------------- | ----------- |
| Returns the value specified in the parameter. | String/Text |

## Example

In this example, we will view the value passed in the `Log.write` function in the console of our broswer for debuging purpose.

### Steps

1. Drag a `button` component into the canvas and open the `Action` tab. Select the `press` event of the button and drag the `Log.write` function to the event flow.
2. Enter the value to be displayed in the console.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-69bf24d51ffe874bc137edb71dba4835b09752b5%2Fwrite-step-1.png?alt=media)

### Result

1. The console will print the value passed.

   ![](https://399701567-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FwmJ1RKjM2uNFaL6fO3Xu%2Fuploads%2Fgit-blob-74ca7ce15df68de1191790c536f55ab8429cb8dc%2Fwrite-result-1.png?alt=media)
