NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Okna dialogowe



Okno dialogowe jest narzędziem pozwalającym komunikacje z użytkownikiem.



Okno informacyjne

Okno decyzyjne

Okno tekstowe

ALERT INFORMACYJNE

<html>

<head>

<title>

Strona ze skyrptem JavaScript

</title>

<meta http-equiv=”Content-type” content=”text/html” ; charset=”iso-8859-2">

<meta http-equiv=”Content-Language” content=”pl”>



</head>

<body>

<script type=”text/javascript”>

Alert(“uwaga! To jest okno dialogowe”);

</script>

</body>

</html>



CONFIRM DECYJNE

<script type=”text/javascript”>

Confirm(“czy chcesz przejsc do strony www?”);

</script>



PROMPT TEKSTOWE

<script type=”text/javascript”>

Document.write(“Javasrcipt to”);

Document.write(prompt(“Javascript to:”, “”));

</script>



Typy Danych JS



Liczbowy – Tylko jeden / A w c++ - Dużo

Łańcuchowy

Logiczny

Obiektowy służy do

Specjalny null/ undefined - Okresla wartość pustą



b | backspace

n | nowy wiersz

r | powrót karetki

f | nowa strona

t | tabulacja pozioma

” |cudzysłów

’ | apostrof

\ | lewy ukośnik







Document.write (“JavaScript<br>”);

Document.write (“”Zycie jest piekne”<br>”);

Document.write (15+”<br>”);

Document.write (100.4+”<br>”);

Document.write (-26+”<br>”);

Document.write (0.1e2+”<br>”);

Document.write (0xAA+”<br>”);

Document.write (-0xCD);



<script type=”text/javascript”>

Var zmienna_1=”Liczba Pi wynosi: “;

Var zmienna_2=3.1415926535;

Document.write(zmienna_1+zmienna_2+”...”);

</script>





<script type=”text/javascript”>

Var imie=prompt(“Witaj! Jak masz na imie?”,””);

Document.write(“Czesc”+imie+”!”);

</script>







Operatory Arytmetyczne



| Symbol | Składnia | Opis |

| + | x+y | Dodawanie |

| - | x-y | Odejmowanie |

| - | -x | Negacja Zmiennej |

| % | x%y | Dzielenie modulo ( Reszta z dzielenia ) |

| * | x*y | Mnożenie |

| / | x/y | Dzielenie |







<script type="text/javascript" src"lokalizacja/nazwa.js">

</script>

</head>

<body>

<script type="text/javascript">

var liczba_1=10;

var liczba_2=5;

document.write("Liczba_1 = "+liczba_1+"<br>");

document.write("Liczba_2 = "+liczba_2+"<br>");

document.write("Suma = "+(liczba_1+liczba_2)+"<br>");

document.write("Różnica = "+(liczba_1-liczba_2)+"<br>");

document.write("Iloczyn = "+(liczba_1*liczba_2)+"<br>");

document.write("Iloraz = "+(liczba_1/liczba_2)+"<br>");

document.write("Reszta z dzielenia = "+(liczba_1%liczba_2)+"<br>");

</script>

</head>

</html>







Operator Łańcuchowy

Symbol

Składnia



+

“tekst” + “tekst”

Łączy dwa ciągi znaków w jeden

++

X ++

Zmniejsza wartość zmiennej o 1(inkrementacja)

--

X --

Zwiększa wartość zmiennej o 1(dekrementacja)

=

X=y

Przypisuje wartość y do zmiennej x

X=

X+=y

Wykonuje przypisanie x=x+y

-=

X-=y

Wykonuje przypisanie x=x-y

*=

X*=y

Wykonuje przypisanie x=x*y

/=

x/y

Wykonuje przypisanie x=x/y

%=

X%y

Wykonuje przypisanie x=x%y



<=

X<=y

Wykonuje przypisanie x=x<y



1=

X1=y

Wykonuje przypisanie x=x^y



|=

X|=y

Wykonuje przypisanie x=x|y



<<=

X<<=y

Wykonuje przypisanie x=x<<y



>>=

X>>=y

Wykonuje przypisanie x=x/y









     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.