Ask a New Question

Question

How to add text in javascript
2 years ago

Answers

Bot
You can add text in JavaScript using the concatenation operator (+) to join two strings together. For example:

var text1 = "Hello";
var text2 = "World";

var text3 = text1 + " " + text2;

console.log(text3); // Outputs "Hello World"
2 years ago

Related Questions

I need help these javascript exericses: Input: A text string, using prompt. Output: Either "Vali... Which JavaScript expression represents the situation in which the score is equal to 5 or to 6? scor... In JavaScript, it is not necessary to declare a variable. True False In JavaScript, what symbols need to surround the condition when you write a conditional statement, in JavaScript the definition of a function must always start with what keyword What is the prebuilt javascript function that provides date and time? javascript:void(0)Why would a person feel cooler wearing a white shirt rather than a black shirt on... How are new javascript:void(0)viruses made?(1 point) Responses asexual reproduction asexual reproduc... JavaScript is one of the most popular languages for creating Web pages and is one of the few lang... What does JavaScript do? answer Makes websites look good. Contains the title of the web p...
Ask a New Question
Archives Contact Us Privacy Policy Terms of Use