Skip to main content
Being Idea Innovations
All Articles
Category

Javascript

15 articles in this category

Explain regex and write email validation
Javascript

Explain regex and write email validation

Here is an example of a regular expression (regex) for email validation using JavaScript: const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/; This regex checks whether a string is a valid email address or not. Here's a breakdown of how it works: ^ indicates the start of the string. [^\s@]+ matches one or more characters that are not whitespace […]

26 April 20231 min read
What is lexical scope in JavaScript?
Javascript

What is lexical scope in JavaScript?

Lexical scope, also known as static scope, refers to the idea that the scope of a variable is determined at the time it is defined, based on its location within the source code, and does not change during runtime. In other words, a variable defined within a block of code (e.g., a function) is only […]

25 April 20231 min read
Explain map, filter and reduce methods with an example
Javascript

Explain map, filter and reduce methods with an example

map(), filter(), and reduce() are three important array methods in JavaScript. They allow us to perform complex operations on arrays with concise, functional-style code. Here are some examples of how these methods work: map(): The map() method creates a new array by calling a function on each element of the original array. It returns an […]

24 April 20232 min read
Explain difference between var, let and, const keywords
Javascript

Explain difference between var, let and, const keywords

var, let, and const are all used to declare variables in JavaScript, but they differ in their scope, hoisting, and assignability. var is used for variable declaration in pre-ES6 JavaScript. It has function scope, meaning that if it is declared inside a function, it is only accessible within that function. Variables declared with var can […]

24 April 20231 min read
How to refresh a div at every 10 seconds using javascript
Javascript

How to refresh a div at every 10 seconds using javascript

everyTime(interval : Integer | String, [label = interval : String], fn : Function, [times = 0 : Integer]) everyTime will add the defined function (fn) as a timed event to run at a given time interval (interval) for a given number of times (times). If time

2 September 20181 min read
An OAuth social login popup system with Facebook, Google and Twitter
Javascript

An OAuth social login popup system with Facebook, Google and Twitter

OAuth Login is very quick and powerful, sure it helps you to increase your website registrations. It s definitely a must have login system for every PHP based web projects.

27 June 20181 min read
Stripe Payment gateway integration using PHP
Javascript

Stripe Payment gateway integration using PHP

Stripe helps you create any type of payments flow—from e-commerce to recurring billing and everything in between. Stripe enables you to accept payments in minutes. Collect your customers' payment information easily and securely on web or mobile.

19 May 20183 min read
Load More items from mySql database using jQuery and PHP
Javascript

Load More items from mySql database using jQuery and PHP

You might have seen the implementation of Ajax based data loading technique at Facebook, Twitter, E-Commerces website or some other websites.

11 May 20183 min read
How to select and display image using FileReader
Javascript

How to select and display image using FileReader

In this tutprial we learn about uploade image using javascript function and display image in img tag.

25 April 20181 min read
Youtube Like & Dislike System using PHP, MySql, jQuery and Ajax
Javascript

Youtube Like & Dislike System using PHP, MySql, jQuery and Ajax

I introduce a like/dislike system with a simple stat widget little like the youtube design.

14 March 20183 min read
Browser Notifications from Web Application Using Javascript
Javascript

Browser Notifications from Web Application Using Javascript

The Notifications API allows you to display browser notifications to the user for given events, both passively (new emails, tweets or calendar events) and on user interactions regardless of which tab has focus.

23 February 20181 min read
Ajax dropdown using PHP, MySQL and jQuery
Javascript

Ajax dropdown using PHP, MySQL and jQuery

Country, State and City Ajax Dropdown is a select box without page rendering.

11 February 20182 min read
geoPlugin Web Service interface to find out location information using php
Javascript

geoPlugin Web Service interface to find out location information using php

geoPlugin web service using php, allows you to directly program your back-end PHP scripts to deliver dynamic geo-localized pages using the PHP array.

23 January 20181 min read
Create Simple Registration Form Using jQuery Form Validation and PHP
Javascript

Create Simple Registration Form Using jQuery Form Validation and PHP

Here in this tutorial, we make you learn how to create simple registration form with proper validation using jQuery and database connectivity using PHP.

3 January 20182 min read

Want to talk tech?

Join 500+ engineering leaders who get our monthly insights on building great software.

No long-term contracts
Senior engineers only
US · AU · NZ timezone coverage
14-day trial on retainers