Co będzie wynikiem działania poniższego kodu JavaScript?
| const obj = { name: 'John', greet: function() { setTimeout(function() { console.log(`Hello, ${this.name}`); }, 1000); } }; obj.greet(); |
| const obj = { name: 'John', greet: function() { setTimeout(function() { console.log(`Hello, ${this.name}`); }, 1000); } }; obj.greet(); |

| SELECT metraz, cena FROM mieszkania WHERE ile_pokoi > 3; |
| for($i=0; $i<=10; $i++) { ....... } |

| sortowanie bąbelkowe | O(n²) |
| sortowanie przez wstawianie | O(n²) |
| sortowanie przez scalanie | O(n log n) |
| sortowanie przez zliczanie | O(n) |
| sortowanie kubełkowe | O(n²) |
| p { padding: 15px; border: 2px dotted gray; } |
char str1[30] = 'Ala ma kota'; printf("%s", str1);
$napis = "Programowanie w PHP";
$napis = substr($napis, 3, 5);?<p style="color: red;">To jest przykładowy akapit.</p>
|
| id_pok | liczba_dn | sezon |
|---|---|---|
| 1 | 10 | lato |
| 2 | 4 | zima |
| 1 | 5 | lato |
| 2 | 6 | zima |
| 1 | 5 | lato |
| 3 | 9 | zima |
| 1 | 8 | zima |
css
p > i {color: blue}
oznacza to, że kolorem niebieskim zostanie wyświetlonyDane można będzie uzyskać dostęp z zewnątrz, korzystając z obiektu stworzonego jako instancja tej klasy? class Dane {
public $a;
private $b;
protected $c;
}
Radio-button label ... The label can be positioned before or after the radio-button by setting the labelPosition property to 'before' or 'after'. Radio groups Radio-buttons should typically be placed inside of an <mat-radio-group> unless the DOM structure would make that impossible ... The radio-group has a value property that reflects the currently selected radio-button inside of the group. Źródło: https://material.angular.io/components/radio/overview |
int tab[10];
int zm1 = 0;
double zm2 = 0;
…
for (int i=0; i < 10; i++)
{
zm1 = zm1 + tab[i];
}
zm2 = zm1 / 10;