Home » JavaScript (page 10)

JavaScript

Javascript Regular Expressions Example

Regular expressions are patterns used to match character combinations in strings. They are used to perform pattern-matching and “search-and-replace” functions on text. In JavaScript, regular expressions are also objects. JavaScript’s regular expression flavor is part of the ECMA-262 standard for the language. This means your regular expressions should work exactly the same in all implementations of JavaScript. In the past ...

Read More »

Javascript Open New Tab Example

One of the most simple and basic actions you find in websites or apps is being able to open a URL into a new tab or window. In most cases this is not only dependent of your code but also the settings of the browser that is used. Let’s see how to proceed in order to make this action possible! ...

Read More »

Javascript Calendar Example

Calendars are a very useful widget or part of an application, as we can see from the frequency in which we use them ourselves (at least for the forgetful people like me!). In fact they can be so useful that there are currently apps dedicated solely to this function in our smartphones and other gadgets. How can we create one ...

Read More »

81 jQuery Interview Questions and Answers – The ULTIMATE List

Without a doubt, jQuery has given a much needed boost to JavaScript, a language so useful but equally underrated at times. Before jQuery came into the picture, we used to write lengthy JavaScript code not just for bigger but even for smaller functionality. That code was at times both difficult to read and maintain. Having written JavaScript before using this ...

Read More »

jQuery Get Example

The aim of this example is to show you how to use the jQuery .get() method. The jQuery .get() method is used to load data from the server using a HTTP GET request. The signature of this method is like jQuery.get(url [,data][,success][,dataType ]) where only the url is mandatory. Some methods as .done(), .fail(), and .always() can be chained to ...

Read More »

Outside-In Testing for Ember Apps

While the actual tests themselves may not change, the are many different approaches to testing an Ember app. In this post, we are going to explore one such option: “Outside-in.” This is where we drive the development of our application/feature starting at the highest level and let the tests guide us down all the way to lowest level. In the ...

Read More »

Angular.js Custom Directives Example

1. Introduction In a previous example we talked about the transclusion concept, in terms of Angular directives. 1.1 What are Directives? But, what are directives in Angular.js? 1.1.1 A definition In general, directives is one of the reasons that Angular.js is famous today. They are essentially custom HTML tags and attributes that you can create to do anything one can ...

Read More »

Understanding Garbage Collection and Memory in Node.js

Whenever there is bad press coverage of Node.js, it is (typically) related to performance problems. This does not mean that Node.js is more prone to problems than other technologies — the user must simply be aware of certain things about how Node.js works. While this technology has a rather flat learning curve, the machinery that keeps Node.js ticking is quite ...

Read More »

JQuery Settimeout Example

The aim of this example is to show you how to use the jQuery setTimeout() method. Sometimes we need to execute a javascript code after some seconds, the jQuery setTimeout() method can be used for this purpose. This method takes two parameters: The first is the javascript that need to be executed. The second is the delay time in milliseconds. ...

Read More »

Want to take your WEB dev skills to the next level?

Grab our programming books for FREE!

Here are some of the eBooks you will get:

  • PHP Programming Cookbook
  • jQuery Programming Cookbook
  • Bootstrap Programming Cookbook
  • Building WEB Apps with Node.js
  • CSS Programming Cookbook
  • HTML5 Programming Cookbook
  • AngularJS Programming Cookbook