Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

this function

function country(name , independenceOn) {

  this.name = name
  this.independenceOn = independenceOn

  this.describe = function () {
    console.log(this.name + " got its independence on " + this.independenceOn + " WHAHAHAHAH")
  }
}

const india = new country('The Country India', 1947)
india.describe()
Comment

PREVIOUS NEXT
Code Example
Javascript :: Backbone Router 
Javascript :: angular 7 selected 
Javascript :: js round floar 
Javascript :: flex slider 
Javascript :: react document viewer 
Javascript :: React S3 Bucket 
Javascript :: jasypt 
Javascript :: iterate over array of object javascript and access the properties 
Javascript :: before unload 
Javascript :: create div with js 
Javascript :: vue js filter 
Javascript :: Create Dark And Light Mode Website Using jQuery 
Javascript :: remove elements from map javascript 
Javascript :: javascript addeventlistener click multiple elements 
Javascript :: js run npm 
Javascript :: how to create an html element in javascript without document 
Javascript :: node js install aws-sdk 
Javascript :: how to give args type in nestjs graphql for array of input 
Javascript :: create http request 
Javascript :: js parameter vs argument 
Javascript :: how to dynamically populate pdf with pdfmake node 
Javascript :: pub js npm 
Javascript :: react hero slider 
Javascript :: javascript addeventlistener click only works once 
Javascript :: Origin http://localhost:3002 is not allowed by Access-Control-Allow-Origin. 
Javascript :: passing json as datasource to jasper report library 
Javascript :: get nested objects via string 
Javascript :: sintax arrow function in javascript 
Javascript :: javascript force view to focus on a div 
Javascript :: Example of Reactjs Controlled-Components 
ADD CONTENT
Topic
Content
Source link
Name
5+2 =