JavaScript Objects Tutorial Videos for Beginner - PowerPoint PPT Presentation

About This Presentation
Title:

JavaScript Objects Tutorial Videos for Beginner

Description:

Learn JavaScript Objects through our online tutorials.Our tutorials are easy to understand and prepared by experts.There are a series of free tutorials which will introduce you to the command language approach to JavaScript programming. – PowerPoint PPT presentation

Number of Views:88

less

Transcript and Presenter's Notes

Title: JavaScript Objects Tutorial Videos for Beginner


1
JavaScript Objects Tutorial Videos for
Beginner by
2
Highlights
  • JS Object Programming Introduction
  • Built in or Native Objects

3
JS Object Programming Introduction
  • JavaScript supports object oriented programming.
  • A programming technology will be called object
    oriented when ever it provides encapsulation,
    inheritance, polymorphism, aggregation.
  • Encapsulation is meant for storing relevant data
    or methods collectively in an object.
  • Aggregation means storing one object inside
    another object.
  • Inheritance describes a class relying upon other
    class to acquire its properties and methods.
  • Polymorphism means writing one function or method
    in various ways.

4
Built in or Native Objects
  • JavaScript is designed on a easy object base
    model. object is a set of properties. JavaScript
    offers various native objects, they are
  • Number Object
  • Boolean Object
  • String Object
  • Array Object
  • Date Object
  • Math Object
  • Regular Expression Object

5
Number Object
  • Number object represents numerical values.
  • It displays either integers or floating-point
    numbers.
  • Syntax for creating a number object is
  • var val new Number(number)
  • Never place a non-number argument in the place
    of number because argument will not transform
    into a number.
  • Every object will have default methods and some
    properties.

6
Boolean Object
  • The Boolean object displays either "true" or
    "false.
  • Syntax var val new Boolean(value)
  • If value omit 0, -0, null, false, NaN, undefined
    boolean objects display false in output. For
    all other values Boolean object shows true.
  • Boolean.length, Boolean.prototype are the
    properties and Boolean.prototype.toSource(),
    Boolean.prototype.toString(), Boolean.prototype.va
    lueOf() are methods.

7
String Object
  •  String object acts as constructor for strings
  • It combines string primitive data type with a
    number of methods.
  • Syntax var val new String(string)
  • String stores set of characters.
  • Constructor, length, prototype are the string
    properties
  • String has many methods, some of them are
    charAT(), charCodeAT(),concat(), indexof(),
    match(), replace(), search(), slice(), split()
    etc..

8
Array Object
  • Stores multiple values in a single variable.
  • Stores similar elements of fixed-size at one
    place.
  • Syntax var animals new Array( lion", tiger",
    bear" )
  • Array parameter is a list of strings or integers.
  • Constructor, length, prototype, index, input are
    array properties.
  • concat(), filter(), every(), join(), indexof(),
    map() etc.. are some methods of array

9
Date Object
  • Useful to Create JavaScript Date instance to
    represent time.
  •  new Date( ) function uses to create date
    objects.
  • Syntax new Date( )
  • new Date(year, month, date,
    hour,minute,second,millisecond )
  • It has construct and prototype properties only.
  • SetDate(), getYear(), Date(), getDate(),
    getDay(), getFullYear() etc.. are the methods of
    date object.

10
Math Object
  • Math is a built-in object.
  • Includes various static methods and properties
    for mathematical constants and functions.
  • Permits execution of mathematical tasks on
    numbers.
  • Math is not a constructor so object can not be
    created.
  • Syntax var mi_val Math.MI
  • var cos_val Math.cos(30)

11
Regular Expression Object
  • Represents a sequence of symbols and characters
    expressing a string or pattern.
  • performs "search-and-replace" functions on text.
  • Syntax var pattern new RegExp(pattern,
    attributes)
  • Or
  • var pattern /pattern/attributes
  • Constructor, global, ignoreCase, lastIndex,
    multiline, source are the properties

12
Feedback
Like It ? Hate It?
We would love to hear from you whatever you think
about the course.
Click HERE to share what you think!
13
Thank you
Thank You for Watching JavaScript Objects
Tutorial Videos for Beginner by
http//www.courseing.com
Write a Comment
User Comments (0)
About PowerShow.com