javascript কি object oriented হয়? আর হলে সেটা কেমন ধরনের?

asked 21 Jan '15, 11:11

Minhaj%20Hasan's gravatar image

Minhaj Hasan
59421037


Javascript is object oriented supported language

Example:

function Animal(name) {

this.name = name

this.run = function() {

alert("running "+this.name)

}

}

var animal = new Animal('Foxie')

animal.run()

permanent link

answered 21 Jan '15, 14:46

ishahriyar's gravatar image

ishahriyar
9519

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×214
×31
×26

question asked: 21 Jan '15, 11:11

question was seen: 1,317 times

last updated: 21 Jan '15, 14:46