Skip to content
Advertisement

Display output with a string character and with an input?

I have two things that relate to adding a character to the output view.

  1. Pronouns – Right now, it is hidden until someone types in their preferred pronoun. It’ll output her/she if that’s what they put, but I would like to do ‘(‘ + “her/she” + ‘)’;

2.The output is hidden until someone types a number. I would like to have it as display M: 739.383.3893.

I can get the outputs to display the input text but never the with the character. How do I go about adding characters into the output based on the input the user puts in?

Extreme beginner here, I’m sorry 🙁

JavaScript
JavaScript
JavaScript

Advertisement

Answer

[x] displaying of (pronoun) is done,
[x] prepending M. to the displayed mobile number is done,

JavaScript
JavaScript
JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement