.encodeBin()

Description

encodeBin takes each character, converts it to binary and then adds it to a new string

Parameters

encodeBin takes no parameters

Usage

val = "hello world"

log val.encodeBin()
// 1101000 1100101 1101100 1101100 1101111 100000 1110111 1101111 1110010 1101100 1100100

Last updated