Regular Expression Flags

In the previous article, you learned about regular expression being pattern of search. Regular expression uses flags that are optional and perform searches that are global or case-insensitive. You can use these searches separately or together to do search.List of Flags Here is a list of flags commonly used with regular expressions. Flag Meaning i … Read more

Regular Expression Basics

The regular expression is sequence of characters that makes a pattern. The pattern is used for searching text in data. You can create a simple pattern or a complex regular expression in JavaScript. The regular expression does two kind of work – search and replace text using several of available string methods.SyntaxThe regular expression has … Read more

JavaScript Do-While Loop

The JavaScript do-while loop is similar to the while loop about which you studied earlier. Instead of testing the condition at the beginning of the loop, a do-while loop test the condition after the loop body. This guarantees that the loop will execute at least once.Syntax – do-whileHere is the syntax of the do-while loop. … Read more

JavaScript While Loop

The JavaScript version of while loop is similar to other programming languages such as C++, Java. The loop takes initial value, checks for condition, and execute the loop and finally increment the loop. The section below describe the syntax and each component of the JavaScript while loop. Syntax – <mark style=”background-color:rgba(0, 0, 0, 0);color:#b81414″ class=”has-inline-color”>While</mark> … Read more

JavaScript For Loop

JavaScript for loop is similar to the for loops in other programming languages like C, C++, and Java. The for loop takes and initial value, checks for terminating conditions, and increment the iteration as long as the continue is true.This article we will talk about different for loop structures in JavaScript. Some of them are … Read more

HTML 5 Semantic Elements and JavaScript Basics

There are two category of HTML 5 elements listed below. Block level elements Inline elements Block elements such as<mark style=”background-color:rgba(0, 0, 0, 0);color:#b61515″ class=”has-inline-color”> </mark><h1> and <p> tags take the entire width of the document.Inline elements such as <b> and <em>,<i>,<img> element will take just enough space within a blockelement.HTML 5 Semantic ElementThere is no … Read more

JavaScript Introduction

JavaScript is a popular scripting language that control the behavior of the webpage using script.Where to Place JavaScript Code?You can place your JavaScript code in two places. Inside the HTML document Use an external file for JavaScript and link to HTML document. JavaScript inside HTML pageExternal JavaScript FileFor external JavaScript file, you have to link … Read more

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Exit mobile version