Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours scrolling social media and waste money on things we forget, but won’t spend 30 minutes a day earning certifications that can change our lives.
Master in DevOps, SRE, DevSecOps & MLOps by DevOpsSchool!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

Modifying Text Nodes in JavaScript

Properties Data Length Methods appendData(String) deleteData(start, length) insertData(start, string) replaceData(start, length, string) splitText(start) substringData(start, length) Length Length property is used to access the length of Text which indicates the number of characters it contains. Syntax:- TextNode.length Data Data property is used to set or return the value of a text node and comment node objects. … Read more

Which String Functions are present in String?

addcslashes — Quote string with slashes in a C style addslashes — Quote string with slashes bin2hex — Convert binary data into hexadecimal representation chop — Alias of rtrim chr — Return a specific character chunk_split — Split a string into smaller chunks convert_cyr_string — Convert from one Cyrillic character set to another convert_uudecode — … Read more

Tutorial for Double Quoted String

What is Double Quoted string? In PHP, we can also define a string by wrapping it in a double quote. However, double quote PHP strings will be used to evaluate escape sequences and variables. How to Create Strings Using Double Quoted with Example. When compared to single quotes, double quotes are utilised to build more … Read more

Tutorial for Single Quoted String

What is Single Quoted string? In PHP, we can make a string by surrounding the content in a single quotation mark. In PHP, it is the simplest way to specify a string. Escape a literal single quote with a backslash (), and use double backslash to specify a literal backslash (). (\). All other backslash … Read more

Complete tutorial for String in PHP

What is String? A PHP string is a collection of characters that can be used to save and manipulate text. PHP only supports a 256-character set, hence it doesn’t support Unicode natively. The term “string” refers to a group of characters. PHP supports a number of data types, including strings. Alphanumeric characters are allowed in … Read more

How many data types How to work are there in JavaScript?

Boolean Boolean is the built-in object corresponding to the primitive Boolean data type. JavaScript boolean can have one of two values: true or false. Primitive Valuesvar primitiveTrue = true;var primitiveFalse = false; Boolean Functionvar functionTrue = Boolean(true);var functionFalse = Boolean(flase); Boolean Constructorvar constructorTrue = new Boolean(true);var constructorFalse = new Boolean(false); Boolean If value parameter is … Read more

List of keywords and reserved words in JavaScript

Keyword or Reserved words var delete for let brack super void case do static function new switch while interface catch else if package finally this with class enum default implements private throw tiled typeof const export import protected return true continue extends in instanceof public try debugger false In JavaScript, we do not need to … Read more

String manipulation exercise

mnanjala created the topic: String manipulation exercise Hi Guys, Say there is a text file inject.dat, it has 5 entries as below PKGNAME=Project-debug OLD_VERSION=1.0.0 NEW_VERSION=1.0.1 PRODUCT NUMBER=1 RELASE DATE=11/11/2011 How we could write shell script so I can read each line replace everything after “=”sign, with new value, example run ./inject.sh $PKGNAME $OLD_VERSION $NEW_VERSION $PRODUCT_NUMBER … Read more