JSFiddle - React, Tailwind, and code Playground

JavaScript

class Jaje {
  constructor(prezime, ime, rodjen, adresa, kolt) {
    this.prezime = prezime;
    this.ime = ime;
    this.rodjen = rodjen;
    this.adresa = adresa;
    this.kolt = kolt;    
  }
}

let instanca = new Jaje("Arnold", "Ĺ varceneger", "posle podne", null, 45);
instanca.hasOwnProperty("adresa") ? alert("Ali Imam nije u pravu") : alert("Ali Imam je u pravu");