Topics Search

JavaScript

Home » JavaScript (2075)
  • Page 1 of 104
  • »
 

Understanding OOP this

Understanding OOP this Icon
Function in javascript have properties, Just like javascript Object have properties. And when function get execute, It get the this property Lets Take a closer look at “this”. this is a special character/keyword in javascript, As we know working with this is little tricky because it can change value when you and you are not expecting
 
Advertisement:
 

Implementing "Save For Offline" with Service Workers - Save for Offline

Implementing "Save For Offline" with Service Workers - Save for Offline Icon
If you're wondering what a service worker is, it's like a little alien that lives on your page and relays messages for you. It can detect when you have an Internet connection and when you don't, and can responds in different ways based on the response.
 

A Beginner’s Guide to JavaScript Variables and Datatypes

A Beginner’s Guide to JavaScript Variables and Datatypes Icon
So you’ve decided to learn JavaScript, the programming language of the web. If it seems like a daunting journey ahead and you don’t know where to start, here’s a little secret: it doesn’t take any special skill to learn how to program, and everyone starts at zero. Take it one step at a time, and you’ll get there.
 

Filtering and Chaining in Functional

Filtering and Chaining in Functional Icon
Although JavaScript supports functional techniques, it’s not optimized for pure functional programming the way a language such as Haskell or Scala is. While I don’t usually structure my JavaScript programs to be 100 percent functional, I enjoy using functional programming concepts to help me keep my code clean and focus on designing code that can be reused easily and tested cleanly.
 

Why use static types in JavaScript? The Advantages and Disadvantages

Why use static types in JavaScript? The Advantages and Disadvantages Icon
Static types offer many benefits when writing programs. Let’s explore a few of them. Static type checking allows us to verify that the invariants we specified are true without actually running the program. And if there’s any violation of those invariants, they will be discovered before runtime instead of during it.
 

Synchronizing Rest Service Schemas

Synchronizing Rest Service Schemas Icon
In this post I’ll walk through a few methods I’ve used in the past to help bridge the gap between a JavaScript/TypeScript front-end and (mostly Java) backing REST services.
 

A quick and painless description of JavaScript Hoisting

A quick and painless description of JavaScript Hoisting Icon
In this tutorial, we'll investigate how the famed hoisting mechanism occurs in JavaScript. Before we dive in, let's get to grips with what hoisting is. Hoisting is a JavaScript mechanism where variables and function declarations are moved to the top of their scope before code execution.
 

Html5 Onclick Event Attribute Example

Html5 Onclick Event Attribute Example Icon
In HTML and JavaScript parlance an event can be either something the browser does or something the user does. What this means is that both the browser and the user can trigger an event. An example of a user triggered event is a button click.
 

Validation Compare Passwords Example

Validation Compare Passwords Example Icon
Here I will explain how to implement compare validator in asp.net mvc using DataAnnotations with example or asp.net mvc validation to compare two properties with examples or validation to compare passwords in asp.net mvc with example or Compare properties in model using DataAnnotations in asp.net mvc with example. In asp.net mvc we can easily implement compare validation on model properties by using DataAnnotations compare property.
 

Create a Random Quote Generator with JSON

Create a Random Quote Generator with JSON Icon
Presenting every visitor to your site with a random quote is a popular way to personalize a user’s experience. Often the quotes are stored in an external file, but if the corpus is relatively small - a dozen entries or less - it’s more efficient to store them directly the page, within their own script:
 

How to Draw Charts Using JavaScript and HTML5 Canvas

How to Draw Charts Using JavaScript and HTML5 Canvas Icon
In this tutorial I will show you how to use JavaScript and the canvas as a means to display numerical information in the form of pie charts and doughnut charts. A chart is a statistical tool used to graphically represent numerical data. A pie chart displays that numerical data as a circle divided into slices. The size of each slice is proportional to the numeric value that it stands for.
 

Logging Errors in Client-Side Applications

Logging Errors in Client-Side Applications Icon
Logging is an important part of any software application, both during active development and when it’s running in production mode. When you’re working on the server, there are hundreds of libraries available to you regardless of your server-side language of choice, a wide range of storage mechanisms, and all sorts of tools you can use to work with the resulting logs. In this article I’ll look at some of the ways in which you can implement logging in a client-side application; particularly in a JavaScript-heavy, single-page application (SPA).
 

How to Create Checkout Form

How to Create Checkout Form Icon
In this tutorial, we are going to create a Shopping Checkout Form using HTML, CSS3 and a little bit of jQuery. We’re going to use Google Fonts for this tutorial, specifically Montserrat.
 

Getting Started With Paper.js: Animation and Images

Getting Started With Paper.js: Animation and Images Icon
This tutorial will cover how to animate items in Paper.js. Later sections of the tutorial will also cover image manipulation and how you can manipulate the colors of individual pixels. The library also enables you to create rasters from vectors which will be covered in the end.
 

Make Dynamic Tables in Seconds from Any JSON Data

Make Dynamic Tables in Seconds from Any JSON Data Icon
If this sounds familiar, then Tabulator is the library for you. Tabulator is a lightweight jQuery UI plugin designed to make building complex interactive tables a doddle, using only a few lines of JavaScript you can turn almost any data source into a beautifully formatted interactive table. In this tutorial I will take you through the basics of creating your first Tabulator, then expand on some of the options available to add extra features to your tables.
 

Tips for using async functions

Tips for using async functions Icon
The foundation of async functions is Promises. That’s why understanding the latter is crucial for understanding the former. Especially when connecting old code that isn’t based on Promises with async functions, you often have no choice but to use Promises directly. For example, this is a “promisified” version of XMLHttpRequest...
 

JQuery Mobile Lesson 2

JQuery Mobile Lesson 2 Icon
Today we continue our lessons about jQuery Mobile. In this lesson we will look at examples of jQuery Mobile initialization, creation of pages, event handlers, page transitions and other.
 

Replace jQuery’s Ready() with Plain JavaScript

Replace jQuery’s Ready() with Plain JavaScript Icon
The ready method was implemented in jQuery to execute code when the DOM is fully loaded. Since it executes the given function when all DOM elements are available, you can be sure that trying to access or manipulate elements will work. Before jQuery 3.0, the typical usage with a anonymous function looked like this:
 

Prototyping reactive interfaces with an adapted JavaScript Observer pattern

Prototyping reactive interfaces with an adapted JavaScript Observer pattern Icon
Did you think this piece was going to have something to do with React, the JavaScript framework? It doesn’t. Therefore, move along you lot; there’s another bazillion posts out there for you. By the same token, if you are a Computer Science graduate and already know what an Observer pattern is and why you would use it, you can probably save yourself any further reading.
 

Building a JavaScript 3D Minecraft Editor

Building a JavaScript 3D Minecraft Editor Icon
I’ve always wanted to build a 3D game. I’ve just never had the time and energy to learn the intricacies of 3D programming. Then I discovered I didn’t need to… I wanted to simulate a Minecraft world (or a tiny part of it at least). Minecraft is a sandbox game, in which you can break and place blocks. I wanted the same kind of functionality, but with HTML, JavaScript, and CSS.
Home » JavaScript (2075)
  • Page 1 of 104
  • »