Math.floor() function in javascript

js

What is Math? Before we learn about Math.random() function I would like to tell you that Math is an object in javascript. The Math object includes several mathematical constants and methods. Math object allows you to perform mathematical tasks. Math is not a constructor, hence all properties and methods can be called by using Math as an object without creating it.

array.length in javascript

js

The length property sets or returns the number of elements in an array. It starts from 1; Syntax is array.length. For Example:

Math.random() function in javascript

js

What is Math? Before we learn about Math.random() function I would like to tell you that Math is an object in javascript. The Math object includes several mathematical constants and methods. Math object allows you to perform mathematical tasks. Math is not a constructor, hence all properties and methods can be called by using Math as an object without creating it.

Define an array in javascript

js

We need not declare arrays before we use them, as like other javascript variables, however declaring is a good habit and best programming practice. Here we will learn to create single dimensional javascript arrays. You can declare an Array in Javascript in three different ways. a) Array Literal

How to get random element from Javascript Array and Display it.

js

Here we will learn to get random element from Javascript Array and Display it. We are using javascript for this tutorial. This can be done using jquery also. This tutorial is divided into 4 steps. 1) Define an array in javascript 2) Math.random() function in javascript 3) array.length in javascript 4) Math.floor() function in javascript

Step by Step Tutorial: Print only a portion/part of page with javascript

Print-icon

There are many scenarios where you want to print just a section of a page and not the whole web page.
To achieve it first we should make sure that the web page is printout friendly.
I have shown below an example of how you can print just a section of a page and not the whole page.

Object Oriented Programming in PHP

fire_bug

An excellent tutorial about OOP in PHP by ANKUR KUMAR SINGH.. Read article here..

Why PHP will last for decade or even more?

php

As we all know PHP stands for “PHP Hypertext Preprocessor” which was initially called as “Personal Home Page” designed by Rasmus Lerdorf. From last few years it has penetrated in the market like a Virus. There are various debates done on PHP as compared to other scripting languages like ASP.net, etc..

Pages:12345678»

Google Search

myphpscripts
Custom Search

Join Us

           

Advertisements


Recommended