Posts

Showing posts from December, 2020

JavaScript 03

Image
  What is Page Redirection ? You might have encountered a situation where you clicked a URL to reach a page X but internally you were directed to another page Y. It happens due to page redirection. This concept is different from  JavaScript Page Refresh . There could be various reasons why you would like to redirect a user from the original page. We are listing down a few of the reasons − You did not like the name of your domain and you are moving to a new one. In such a scenario, you may want to direct all your visitors to the new site. Here you can maintain your old domain but put a single page with a page redirection such that all your old domain visitors can come to your new domain. You have built-up various pages based on browser versions or their names or may be based on different countries, then instead of using your server-side page redirection, you can use client-side page redirection to land your users on the appropriate page. The Search Engines may have already indexed your

JavaScript(PART : 02)

Image
  Switch The objective of a  switch  statement is to give an expression to evaluate and several different statements to execute based on the value of the expression. The interpreter checks each  case  against the value of the expression until a match is found. If nothing matches, a  default  condition will be used. switch (expression) {    case condition 1: statement(s)    break;       case condition 2: statement(s)    break;    ...       case condition n: statement(s)    break;       default: statement(s) } The  break  statements indicate the end of a particular case. If they were omitted, the interpreter would continue executing each statement in each of the following cases . The while Loop The most basic loop in JavaScript is the  while  loop which would be discussed in this chapter. The purpose of a  while  loop is to execute a statement or code block repeatedly as long as an  expression  is true. Once the expression becomes  false,  the loop ter

JavaScript(part-01)

Image
  What is JavaScript?? JavaScript  is a lightweight, interpreted  programming  language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java.  JavaScript  is very easy to implement because it is integrated with HTML. It is open and cross-platform. JavaScript was first known as  LiveScript,  but Netscape changed its name to JavaScript , possibly because of the excitement being generated by Java. JavaScript made its first appearance in Netscape 2.0 in 1995 with the name  LiveScript . The general-purpose core of the language has been embedded in Netscape, Internet Explorer, and other web browsers. Why to Learn JavaScript ? JavaScript is the most popular  programming language  in the world and that makes it a programmer’s great choice. Once you learnt JavaScript, it helps you developing great front-end as well as back-end software using different JavaScript based frameworks like jQuery, Node.JS etc. JavaScript is everywhere, it comes i