Тёмный

Curso de C#: Errores sintácticos y lógicos 

diego moisset de espanes
Подписаться 29 тыс.
Просмотров 4,4 тыс.
50% 1

Опубликовано:

 

25 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@gerelddevEricka
@gerelddevEricka 2 года назад
thanks good prof
@anotherzoldyck4226
@anotherzoldyck4226 Год назад
Hola estoy haciendo tu curso de JavaScript y me quedé atoraado en el ejercicio del capítulo 41 Definición de varias clases. Si no es mucha molestia me podrías decir qué está mal en este código? function Persona(){ this.nombre=prompt('Ingrese nombre'); this.edad=parseInt(prompt('Ingrese edad')); } function Empresa(eda){ this.eda=eda; this.ingresar=function(){ if (this.eda>=60){ document.write(' no puede ingresar a esta empresa' + ''); } else { document.write(' si puede ingresar a esta empresa' + ''); } } } let persona1; persona1= new Persona(); let empresa1; empresa1 = new Empresa(); empresa1.ingresar(persona1.edad); No me reconoce el atributo persona1.edad. Desde ya muchas gracias
@diegomoissetdeespanes
@diegomoissetdeespanes Год назад
function Persona(){ this.nombre=prompt('Ingrese nombre'); this.edad=parseInt(prompt('Ingrese edad')); } function Empresa(eda){ // recibe la edad el constructor this.eda=eda; this.ingresar=function(){ alert(this.eda) if (this.eda>=60){ document.write(' no puede ingresar a esta empresa' + ''); } else { document.write(' si puede ingresar a esta empresa' + ''); } } } let persona1; persona1= new Persona(); let empresa1; empresa1 = new Empresa(persona1.edad); // le pasamos en el constructor la edad empresa1.ingresar();
@anotherzoldyck4226
@anotherzoldyck4226 Год назад
@@diegomoissetdeespanes Muchas gracias!!
Далее
Learn Any Programming Language In 3 Hours!
22:37
Просмотров 481 тыс.
Google Data Center 360° Tour
8:29
Просмотров 5 млн
REFERENCES in C++
10:13
Просмотров 582 тыс.
What are Events? (C# Basics)
15:05
Просмотров 396 тыс.
Learn C# BASICS in 10 MINUTES!
10:55
Просмотров 798 тыс.