answersLogoWhite

0

Which operator is used in java script to work on string?

Updated: 8/20/2019
User Avatar

Wiki User

11y ago

Best Answer

If you want to check if two strings are equal you have to use string_b)

alert("Strings are equal");

else

alert("Strings are not equal");

}



User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Which operator is used in java script to work on string?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


What is the significance of the character string T0526?

The significance of he string T0526 is the functioning of the ECMA script. This is needed when working with Java and programming and used to enhance webpages.


In Java what operator is used to determine if an object is of a particular class type?

The instanceof keyword is used to determine if an object is of a particular class type.Example:Object obj = new String();if(obj instanceof String) {System.out.println("obj is a String!");}


What is concatetion operation used in java?

"+" is the concatenation operator in Java. It can be used to concatenate two strings. Ex: String firstName = "John"; String lastName = "Morrison"; System.out.println(firstName + " " + lastName); The above code snippet would display John Morrison in the console.


What does the java new operator do?

The new keyword tells Java that you want to create a new instance of a class by invoking one of the constructors for that class.// Create a new, empty String objectString s1 = new String();// Create a new String object with a different constructorString s2 = new String("howdy");


What are the restriction that are applied to operator overloading?

Java does not support user defined operator overloading.The operator '+' is overloaded in Java and can be used for adding both numbers and Strings.


Is HTML and java script the same?

Nope. Not the way I look at it. I would have used java script in web design for some graphic work but java is the king and I also heard that java script really is not all the same now days. But I would say "NO" anyhow. Cheers linny


How does Java Script enhances webpages?

Java Script allows client side modifications. In simple terms the websites which let you change the look and feel, drag & drop items, have good animations, image sliders, slideshows are more or less being done using java script. Ofcourse other languages and technologies are used but java script is the most commonly used in those scenarios.


What can javascript do?

Java script can be used to automate simple tasks that may be repetitive to computer users. You can also use java script in web pages to have interaction with the user.


What is used to create large program on internet?

Java script


How do you campaire Strings in java?

String class in Java has an 'equals' method that can be used to compare strings.


Which attribute is used in script tag to specify a file containing the java script statements?

The script tag will have the "src" attribute to identify the location of the script's contents.