answersLogoWhite

0

There isn't much to it:
---
alert("Hello " + "world!");
---

'alert' creates a popup, and the + does string concatenation.

See related link for a Javascript tutorial.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Write a program to implement the various operations on string such as length of string concatenation reverse of a string copy of a string to another in VB?

what is string


Assembly language program for string concatenation using 8086 microprocessor?

write program to concatenating two sting in 8086 assembly language


In a java program in a return statement with string concatenation how do you print a blank line?

use "\n" between the words where you want a new line


C program to copy two strings in to a new string with out using stringcopy in borland c?

You can use so called concatenation of strings:{...string str1 = "something here";string str2 = " and something here";string newStr = str1 + str2;...}


What is a derived string?

A derived string is a string that is created or transformed from an existing string through operations such as concatenation, substring extraction, or modification of characters. For example, if the original string is "hello," a derived string could be "hello world" (concatenation) or "ell" (substring extraction). Derived strings are often used in programming and text processing to manipulate and analyze textual data.


What is the significance of closed under concatenation in the context of string operations?

In the context of string operations, being closed under concatenation means that when you combine two strings together, the result is still a valid string. This property is important because it ensures that string operations can be performed without creating invalid or unexpected results.


How to write a C program for concatenation of two strings using stack?

#include #include using std::cin;using std::cout;using std::endl;using std::string;int main(void){string str1 = "nothing here";cout str1;string str2 = "neither here";cout str2;string srt = "result here";cout


How do you check length of password using javascript?

Use the length property of string in javascript.


What is concatenation and when will it be useful?

Concatenation is the joining of two vectors to produce a new vector. The new vector simply appends one vector to the other. A vector is an array of variables of the same type. Concatenation is most commonly used to join two strings together (string concatenation). A string is simply an array of type char.


How to perform string operations like concatenation compare etc without using built in functions?

performing string operation using pointers


14 Write a program to change the case of the given string?

public class class1{public void changeCase(String str){String str1=str.toUpperCase();String str2=str.toLowerCase();System.out.println(str1);System.out.println(str2);System.out.println("After concatenation "+("to".concat("get").concat("her")));}public static void main(String[] args){class1 c1=new class1();c1.changeCase("Hello");}}


How can one replace words in JavaScript's String Object?

The JavaScript's String Object has a function that allows someone to replace words that occur within the string. This works if the form letter with a default reference of username is available.


What is joining strings together known as?

Joining strings together is known as "string concatenation." This process involves combining two or more strings to create a single, continuous string. In many programming languages, concatenation can be achieved using operators like the plus sign (+) or specific functions designed for this purpose.


What is the meaning behind a javascript split?

The javascript split method, split(), will alter a string to make it into an array of substrings. This is useful if you would like to store each substring from the original string seperately.


How can I use the mini.split function to separate a string into an array of substrings in JavaScript?

To use the mini.split function in JavaScript to separate a string into an array of substrings, you need to call the split method on the string and provide the delimiter as an argument. This will split the string at each occurrence of the delimiter and return an array of substrings.


What is parseint in javascript?

it is used to convert the string value that we get from the users to integer data type


Which string function appends source string to the destination?

The string function that appends a source string to a destination string is typically called strcat in C and C++. This function takes two arguments: the destination string and the source string, and it appends the source string to the end of the destination string, modifying the destination string in place. In other programming languages, similar functionality may be achieved with functions like concat or the + operator for string concatenation.


How can you define and manipulate a string scalar in programming languages?

In programming languages, a string scalar is a sequence of characters. To define a string scalar, you enclose the characters in quotation marks. To manipulate a string scalar, you can perform operations like concatenation (joining strings together), slicing (extracting a portion of the string), and searching for specific characters or substrings within the string.


How do you show the location of an occurrence of the letter e in a string using javascript?

The location of a substring within a string in JavaScript can be found using the indexOf() method of the string type. That method will return the placement of a string as a numerical index, starting from 0. The method takes two arguments. The first is the substring you're looking for. In this case "e." The second argument is optional, and it's the "start" argument. If you define it, you define the index from which JavaScript will start looking for the substring. By default, this index is 0 (zero.) If you want to find all of the occurrences of a string using this method, you have to write a loop. To see a working example of that, check out the JSFiddle in the related links. I've also attached a good lesson on JavaScript strings in PDF.


What is a operator overriding in java?

Java does not support object overriding. It does support operator overloading by means of the "+" symbol which is used for both numeric addition as well as string concatenation.