---
title: "javascript type · RUAL Documentation"
description: "Returns the JS-engine type of a given value"
canonical: https://docs.rual.nl/block-types/value/value_javascript_type
language: en
---

# javascript type

This block is part of the [`value`](https://docs.rual.nl/block-types/value) group and was last modified in core [`v12.0.4`](https://docs.rual.nl/core-versions/120004).

Returns the JS-engine type of a given value

- value required `value`

- type `value`

Outputs a type name string: null, number, NaN, Infinity, string, boolean, array, or object. This DIVERGES from raw JS typeof: nil reports "null" (not "object"), arrays report "array", and NaN/Infinity are named explicitly. Strings always report "string" - numeric-looking text is NOT sniffed.

| `typoef` |
| --- |

A typical wiring for [javascript type](https://docs.rual.nl/block-types/value/value_javascript_type): [value](https://docs.rual.nl/block-types/value/value_default) feeds the `value` pin; the `value` out pin feeds [convert to uppercase](https://docs.rual.nl/block-types/value/value_to_uppercase).

![Studio canvas example for the javascript type block: typical wiring for javascript type.](https://docs.rual.nl/canvas-examples/value_javascript_type.png)

### Version history

Introduced in [`v12.0.4`](https://docs.rual.nl/core-versions/120004).
