use alert js text and variable code example Example: javascript alert variable var text = "hello world"; alert(text);