Código:
  
<script language="javascript1.4" type="text/javascript">
  function persona(edad, nombre){
	// atributos
	this.edad = edad;
	this.nombre = nombre;
	//funciones
	this.decirNombre = nom;
	this.decirEdad = edad;
	}
	
	function nom(){ return 'jose '; }
	function edad() { return '22'; }
	
	function prueba(){
	  var pers1 = new persona('jose', '22');
		alert('nombre: '+ pers1.decirNombre());
		alert('edad:   '+ pers1.decirEdad());  //en este alert me da error
	}
</script>
gracias por adelantado
 
 

