# "hello!" is not a function p5.js help

**URL:** <https://discourse.processing.org/t/hello-is-not-a-function-p5-js-help/1957>\
**Category:** p5.js\
**Created:** [July 21, 2018, 8:50am UTC](https://discourse.processing.org/t/hello-is-not-a-function-p5-js-help/1957 "2018-07-21T08:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ville2008](https://avatars.discourse-cdn.com/v4/letter/v/9fc348/32.png) [@ville2008](https://discourse.processing.org/u/ville2008)\
**Post date:** [July 21, 2018, 8:50am UTC](https://discourse.processing.org/t/hello-is-not-a-function-p5-js-help/1957/1 "2018-07-21T08:50:56Z")

</div>

this is my source code i am trying to make an interact system and im stuck i have never done this before so if it is a blatant issue dont be to hard on me i have coded in p5.js before but never done anything like this before, my problem at the bottom it is a function named sayName but the createP is not working it is saying that hello! is not a funtion

```auto
var textfield;
var input;
var TextP;
var NameP;
var v;

function setup() {

  textfield = createInput();
  textfield.position(0, 0);
  textfield.changed(Hello);

  TextP = createP("say hello!")
  TextP.position(180, -10)
}

function Hello() {
  if (textfield.value = "hello")
    nameP = createP("hello please type your name")
    nameP.position(0, 50)

    input = createInput()
    input.position(0, 40)
    input.changed(SayName)
}

function SayName() {
  createP("hello!" textfield.value())
  NameP.position(0, 70)
}

```

---

<div class="post-metadata">

**Author:** ![kjhollen](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kjhollen/32/23_2.png) [@kjhollen](https://discourse.processing.org/u/kjhollen)\
**Post date:** [July 23, 2018, 12:59am UTC](https://discourse.processing.org/t/hello-is-not-a-function-p5-js-help/1957/2 "2018-07-23T00:59:19Z")

</div>

hi @ville2008, I see a couple things here that might be giving you trouble.

to get rid of the “hello!” error you’ll probably need a plus sign in between the strings to tell Javascript to add them together (sometimes you might see this called concatenating strings):

`createP("hello!" + textfield.value());`

I think you’ll also need to change `nameP` to `NameP` in your function `Hello()` to get this to work.

hope this helps!
