Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

objeto con método javascript

const libro = {
    
    titulo: "El Quijote",
    autor: "Cervantes",
    paginas: 600,
//MÉTODO
    info: function(){
    var cadena = this.titulo + " , " + this.autor ;
    return cadena
}
    // El Quijote , Cervantes
Comment

PREVIOUS NEXT
Code Example
Javascript :: jquery async await $.getScript( 
Javascript :: joi number of digits 
Javascript :: javascript event listener get id of clicked items 
Javascript :: hide an element when window resize css 
Javascript :: Add Multilanguage Support to React App 
Javascript :: download string as file express js 
Javascript :: javascript conditional 
Javascript :: react node-sass 
Javascript :: get date in milliseconds javascript 
Javascript :: apollo graphql 
Javascript :: object method in javascript 
Javascript :: Angular p-dialog 
Javascript :: node express tutorial 
Javascript :: javascript check if url ends with slash 
Javascript :: req.body is empty express js 
Javascript :: find the max number in an array js 
Javascript :: how to check popup is open or not in javascript 
Javascript :: react get current date minus 7 days 
Javascript :: javascript match 
Javascript :: deparam javascript 
Javascript :: validar correo electronico en js 
Javascript :: how to add a key in a react element 
Javascript :: how to put submit type of input element in a queryselector in javascript 
Javascript :: array.map 
Javascript :: palindrome number 
Javascript :: appendchild element once if element present in js 
Javascript :: what is state in react 
Javascript :: jade cdn 
Javascript :: javascript select letter in string 
Javascript :: angular singleton service example 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =