Showing 3 Result(s)
regular expression

JavaScript Regular expression for beginner

Today I explore with Javascript regular expression. It is interesting. I have added below what I learned so far. You have to put regular expression syntax is of two slashes. Like this /hello/. if you include i after that it will escape case sensitivity. for example /hello/i. Here is some function that works on regular expression: exec() : Return result …

Basic Javascript concepts – vol 1

Comments in Javascript: There are two ways to comments on Javascript. Single line comment and multiline comment. To start with a single line comment in one line. here is the sample: //This is single-line comment Multiline comment means you can comment through two to more lines you want. sample is: /*This is multiline comment */ Variable in JavaScript: we can …

js-console

All about the console – Javascript

We can see an immediate result of our code on the console. Also, we can send errors, warnings, and info too. Here is how to do that To open the console on the browser open a new tab. After that, right-click to mouse and click on inspect element. You can do it using a keyboard. The shortcut for mac is …