# My last JS question, i swear

**URL:** https://forum.kirupa.com/t/my-last-js-question-i-swear/121287
**Category:** Uncategorized
**Created:** [September 1, 2004, 5:59pm UTC](https://forum.kirupa.com/t/my-last-js-question-i-swear/121287 "2004-09-01T17:59:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![benjah](https://avatars.discourse-cdn.com/v4/letter/b/fbc32d/32.png) [@benjah](https://forum.kirupa.com/u/benjah)
#### Post date: [September 1, 2004, 5:59pm UTC](https://forum.kirupa.com/t/my-last-js-question-i-swear/121287/1 "2004-09-01T17:59:44Z")

</div>

ok, let’s say i have a variable called yourPets that is defined by a prompt.

```auto
 var yourPets= prompt('What pet's do you have?'); 

```

let’s say the user types “I have a dog” into the prompt box. yourPets now equals “I have a dog.”

now let’s say i want to make it so when yourPets displays, instead of “I” i want “You” to appear.

so if an alert box came up with the value (yourName) it would display “You have a dog” instead of “I have a dog.”

does that make sense? i hope so. sorry for all the questions, this is my last i swear.
