Está en la página 1de 1

<html> <head> <script type="text/javascript"> factura = { factura_numero:100 , fecha:"12/12/2010", total:200, pagada:"si", imprimir:function() { alert("La factura numero "+ this.

factura_numero + " con fecha " + this.fecha + " tiene un total de "+ this.total +" y " + this.pagada +" esta pagada. "); } } factura.imprimir(); </script> </head> <body> </body> </html>

También podría gustarte