<!DOCTYPE html> <html lang="cs"> <head> <meta charset="utf-8" /> <title>Louka</title> <script> /* <![CDATA[ */ /* Sem prijde javascript kod */ var louka = { sezranaTrava: 0, pocetBlech: 10 } function krecek(stav){ console.log("Chramst "+Math.random()) stav['sezranaTrava'] += 1 } krecek(louka) krecek(louka) krecek(louka) krecek(louka) console.log("sezrana trava:" + louka['sezranaTrava']) console.log("blechy:" + louka['pocetBlech']) /* ]]> */ </script> </head> <body> </body> </html>