Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="pl-PL">
- <head>
- <meta charset="UTF-8">
- </head>
- <body>
- <script type="text/javascript">
- var Produkt = {
- name ,
- Cena: 12,
- Waga:3,
- print : function() {
- console.log("Zdrowe i tanie mniam ");
- }
- }
- Produkt.name= "Pomidor"
- document.write( Produkt.name)//Pomidor
- document.write(" "+Produkt.Cena)
- document.write(" "+Produkt.Waga)
- Produkt.print(); //"Przed wyruszeniem w drogie należy zebrać drużyne"
- document.write(window.innerWidth) //Właściwość innerWidthobietku window
- document.write([1,2,3,4].lenght) //Właściwość lenght obiektu Array
- document.write(Math.max(1,2,3)) //Metoda max() obiektu Math
- window.alert("ok"); //metoda alert() obiektu window
- console.log("larem"); //metoda log() obiektu console
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement