Menu

Strings are pieces of text enclosed in double quotes. bubblecode has two ways to join strings and several built-in functions for working with them.

Joining strings

Use & to join strings directly (no space) or && to join with a space:

join.bubble

String functions

bubblecode has built-in functions for common text operations:

strfns.bubble

Checking contents

Use contains to check if a string includes a certain word:

contains.bubble

Exercise

Exercise

Create a variable "first" with value "Hello" and "second" with value "bubblecode". Print them joined with a space using &&.

exercise.bubble

Quiz

Question 1 of 3

What is the difference between & and && when joining strings?