View all courses
This Course is designed for the aspiring Web Designers and Developers with a need to understand the HTML in enough detail along with its simple overview, and practical examples.
Read more
CSS is used to control the style of a web document in a simple and easy way.This tutorial will help both students as well as professionals who want to make their websites.
JavaScript is a lightweight, interpreted programming language. It is designed for creating network-centric applications. It is complimentary to and integrated with Java.
This tutorial is designed for software programmers who wants to learn the basics of jQuery and its programming concepts in simple and easy ways. This tutorial will give you enough understanding on components of jQuery with suitable examples.
AJAX, is a web development technique for creating interactive web applications. If you know JavaScript, HTML, CSS, and XML, then you need to spend just one hour to start with AJAX.
HTML5 is the latest and most enhanced version of HTML.Technically, HTML is not a programming language, but rather a mark up language.This tutorial has been designed for beginners in HTML5 providing the basic to advanced concepts of the subject.
PHP (Hypertext Preprocessor), it is extensively used by developers for programming and development. PHP has lots of benefits and easy to learn so it is the first choice of developers and programmer.
Many PHP programming courses cover the basics or a specific concept. Our Advanced PHP Development course gives you the concepts, features, tools, and practical advice to use them together to build performant, secure, scalable, and reliable web applications.
In this tutorial we will provide you with detailed instructions on how to use WordPress to create and manage your site. WordPress can be used for both simple and complex websites. In our WordPress tutorial we have tried to cover all the basics and few advanced topics.
This tutorial has been prepared for developers who would like to learn the art of developing websites using CodeIgniter. It provides a complete understanding of this framework.
Zend Framework 1 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 1 uses 100% object-oriented code and utilises most of the new features of PHP 5.3.
Zend Framework 2 is an open source Module based framework for developing web applications and services using PHP 5.5+. Zend Framework 1 uses 100% object-oriented code and utilises most of the new features of PHP 5.5
The Language Which does not need any prior knowledge of Programming and Easy to learn .Python is Object-oriented ,interpreted and Server side Scripting language .
In Advance concept After learning Core Python We will use Python to create Desktop Application, Web Application, Sockets Programming , Multithread Programming. Since its An Open source Language its free of Cost
Ruby is server side, dynamic, reflective, object-oriented, general-purpose programming language. Ruby is "an interpreted scripting language for quick and easy object-oriented programming"
Ruby on Rails, or simply Rails, is a web application frameworkwritten in Ruby under the MIT License. Rails is a model–view–controller (MVC) framework, providing default structures for a database, a web service, and web pages.
If you have any confusion then you can ask our experts.Our experts will guide you properly.
We are looking you if you are looking guidance for web design and development. Apply online.
Contact us
An array in JavaScript is a data structure used to store multiple values in a single variable. It can hold various data types and allows for dynamic resizing. Elements are accessed by their index, starting from 0.
let x = [10,20,30,40,50];
console.log(x);
console.log(x[0]);
console.log(x[3]);
console.log(x[1]);
let y = Array(22,33,44,55,66)
console.log(y[2])
x[6]= 60;
x[5]= 66;
x[5]= 606;
for(z in x){
console.log(z)
}
for(k of x){
console.log(k)
Array predefined function
JavaScript array methods are built-in functions that allow efficient manipulation and traversal of arrays. They provide essential functionalities like adding, removing, and transforming elements, as well as searching, sorting, and iterating through array elements, enhancing code readability and productivity.
Array length
The length property returns the length of the given array.
Array toString()
The toString() method converts the given value into the string.
Array join()
This join() method creates and returns a new string by concatenating all elements of an array. It uses a specified separator between each element in the resulting string.
Array pop()
Array push()
Array shift()
Array unshift()
Array concat()
Array splice()
Array slice()
delete array[index]
The delete operator is used to delete the given value which can be an object, array, or anything.
let x = [10, 20, 30, 40, 50];
console.log(x.length);
console.log(x.toString());
console.log(x.pop())
console.log(x.push(60,70,80));
console.log(x.shift());
console.log(x.unshift(5,6,7));
Slice,splice,join,concat
// index strats at 0;
// position strats at 1;
slice(Index,position)
console.log(x.slice(2, 3));
Splice(index,how many to delete,what to add))
console.log(x.splice(2, 1, 45, 65));
//join(Seperaor)
console.log(x.join(" * "));
//concat creates a new array by merging (concatenating) existing arrays
let y = [11, 22, 33, 44, 55];
console.log(x.concat(y));
console.log(y.concat(x));
Search functions
let x = [10, 20, 30, 40, 50,40,60,40];
//indexOf searches an array for an element value and returns its position.
console.log(x.indexOf(40))
//To find out the last occurence of the element
console.log(x.lastIndexOf(40))
//IT checks wether the element is present in the array or not
console.log(x.includes(66))
myarray.find((value)=>{
if(value > 40){
console.log(value)
})
//50,40,60,40
console.log(x.findLast((value)=>{
return value>40;
}))
Sort functions
array.sort()
let books = ["math", "science", "social", "engljsh", "english","hindi"];
console.log(books);
console.log(books.sort());
console.log(books.reverse());
let myarray = [10,20,30,40,50,60,70,80,90,100,101];
console.log(myarray.sort((firstelement,secondelement)=>{
return (firstelement-secondelement)
}));
Array Iteration Functions
let myarray = [11, 22, 33, 44, 55, 66, 77, 88, 99];
var Total = 0;
myarray.forEach((value, index, array) => {
var Total = Total + value;
console.log(Total);
});
console.log(
myarray.map((value) => {
//return value*3;
}),
);
myarray.filter((value)=>{
if(value > 20){
//22, 33, 44, 55, 66, 77, 88, 99
myarray.reduce((Total, value, index, array) => {
return (Total = Total + value);
let yourarray = [101, 203, 303, 404];
Multidimentionl Array
let combinedArray = [myarray, yourarray];
//console.log(combinedArray);
spread operator
let combinedSpreadArray = [...myarray, ...yourarray];
//To merge an array we use spread operator
//console.log(combinedSpreadArray);
insert and remove element without using any predefined method
var myarray = [10, 20, 30, 40, 50];
for (i = 0; i < myarray.length; i++) {
console.log(myarray[i]);
//How to add an element at the begening of an array
console.log(myarray);
myarray[5] = myarray[4];
myarray[4] = myarray[3];
myarray[3] = myarray[2];
myarray[2] = myarray[1];
myarray[1] = myarray[0];
myarray[0] = 44;
//How to add an element at the end of an array
myarray[myarray.length] = 155;
//How to add an element at the specified position of an array
//30,55
//[10, 20, 30,40, 50 ]
//[10, 20, 30 ,40, 50, ]
< javascript complete notes Exception handling in javascript >
{{questionlistdata.blog_question_description}}
{{answer.blog_answer_description }}