1
   2
   3
   4
   5
   6
   7
   8
   9
  10
  11
  12
  13
  14
  15
  16
  17
  18
  19
  20
  21
  22
  23
  24
  25
  26
  27
  28
  29
  30
  31
  32
  33
  34
  35
  36
  37
  38
  39
  40
  41
  42
  43
  44
  45
  46
  47
  48
  49
  50
  51
  52
  53
  54
  55
  56
  57
  58
  59
  60
  61
  62
  63
  64
  65
  66
  67
  68
  69
  70
  71
  72
  73
  74
  75
  76
  77
  78
  79
  80
  81
  82
  83
  84
  85
  86
  87
  88
  89
  90
  91
  92
  93
  94
  95
  96
  97
  98
  99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 230
 231
 232
 233
 234
 235
 236
 237
 238
 239
 240
 241
 242
 243
 244
 245
 246
 247
 248
 249
 250
 251
 252
 253
 254
 255
 256
 257
 258
 259
 260
 261
 262
 263
 264
 265
 266
 267
 268
 269
 270
 271
 272
 273
 274
 275
 276
 277
 278
 279
 280
 281
 282
 283
 284
 285
 286
 287
 288
 289
 290
 291
 292
 293
 294
 295
 296
 297
 298
 299
 300
 301
 302
 303
 304
 305
 306
 307
 308
 309
 310
 311
 312
 313
 314
 315
 316
 317
 318
 319
 320
 321
 322
 323
 324
 325
 326
 327
 328
 329
 330
 331
 332
 333
 334
 335
 336
 337
 338
 339
 340
 341
 342
 343
 344
 345
 346
 347
 348
 349
 350
 351
 352
 353
 354
 355
 356
 357
 358
 359
 360
 361
 362
 363
 364
 365
 366
 367
 368
 369
 370
 371
 372
 373
 374
 375
 376
 377
 378
 379
 380
 381
 382
 383
 384
 385
 386
 387
 388
 389
 390
 391
 392
 393
 394
 395
 396
 397
 398
 399
 400
 401
 402
 403
 404
 405
 406
 407
 408
 409
 410
 411
 412
 413
 414
 415
 416
 417
 418
 419
 420
 421
 422
 423
 424
 425
 426
 427
 428
 429
 430
 431
 432
 433
 434
 435
 436
 437
 438
 439
 440
 441
 442
 443
 444
 445
 446
 447
 448
 449
 450
 451
 452
 453
 454
 455
 456
 457
 458
 459
 460
 461
 462
 463
 464
 465
 466
 467
 468
 469
 470
 471
 472
 473
 474
 475
 476
 477
 478
 479
 480
 481
 482
 483
 484
 485
 486
 487
 488
 489
 490
 491
 492
 493
 494
 495
 496
 497
 498
 499
 500
 501
 502
 503
 504
 505
 506
 507
 508
 509
 510
 511
 512
 513
 514
 515
 516
 517
 518
 519
 520
 521
 522
 523
 524
 525
 526
 527
 528
 529
 530
 531
 532
 533
 534
 535
 536
 537
 538
 539
 540
 541
 542
 543
 544
 545
 546
 547
 548
 549
 550
 551
 552
 553
 554
 555
 556
 557
 558
 559
 560
 561
 562
 563
 564
 565
 566
 567
 568
 569
 570
 571
 572
 573
 574
 575
 576
 577
 578
 579
 580
 581
 582
 583
 584
 585
 586
 587
 588
 589
 590
 591
 592
 593
 594
 595
 596
 597
 598
 599
 600
 601
 602
 603
 604
 605
 606
 607
 608
 609
 610
 611
 612
 613
 614
 615
 616
 617
 618
 619
 620
 621
 622
 623
 624
 625
 626
 627
 628
 629
 630
 631
 632
 633
 634
 635
 636
 637
 638
 639
 640
 641
 642
 643
 644
 645
 646
 647
 648
 649
 650
 651
 652
 653
 654
 655
 656
 657
 658
 659
 660
 661
 662
 663
 664
 665
 666
 667
 668
 669
 670
 671
 672
 673
 674
 675
 676
 677
 678
 679
 680
 681
 682
 683
 684
 685
 686
 687
 688
 689
 690
 691
 692
 693
 694
 695
 696
 697
 698
 699
 700
 701
 702
 703
 704
 705
 706
 707
 708
 709
 710
 711
 712
 713
 714
 715
 716
 717
 718
 719
 720
 721
 722
 723
 724
 725
 726
 727
 728
 729
 730
 731
 732
 733
 734
 735
 736
 737
 738
 739
 740
 741
 742
 743
 744
 745
 746
 747
 748
 749
 750
 751
 752
 753
 754
 755
 756
 757
 758
 759
 760
 761
 762
 763
 764
 765
 766
 767
 768
 769
 770
 771
 772
 773
 774
 775
 776
 777
 778
 779
 780
 781
 782
 783
 784
 785
 786
 787
 788
 789
 790
 791
 792
 793
 794
 795
 796
 797
 798
 799
 800
 801
 802
 803
 804
 805
 806
 807
 808
 809
 810
 811
 812
 813
 814
 815
 816
 817
 818
 819
 820
 821
 822
 823
 824
 825
 826
 827
 828
 829
 830
 831
 832
 833
 834
 835
 836
 837
 838
 839
 840
 841
 842
 843
 844
 845
 846
 847
 848
 849
 850
 851
 852
 853
 854
 855
 856
 857
 858
 859
 860
 861
 862
 863
 864
 865
 866
 867
 868
 869
 870
 871
 872
 873
 874
 875
 876
 877
 878
 879
 880
 881
 882
 883
 884
 885
 886
 887
 888
 889
 890
 891
 892
 893
 894
 895
 896
 897
 898
 899
 900
 901
 902
 903
 904
 905
 906
 907
 908
 909
 910
 911
 912
 913
 914
 915
 916
 917
 918
 919
 920
 921
 922
 923
 924
 925
 926
 927
 928
 929
 930
 931
 932
 933
 934
 935
 936
 937
 938
 939
 940
 941
 942
 943
 944
 945
 946
 947
 948
 949
 950
 951
 952
 953
 954
 955
 956
 957
 958
 959
 960
 961
 962
 963
 964
 965
 966
 967
 968
 969
 970
 971
 972
 973
 974
 975
 976
 977
 978
 979
 980
 981
 982
 983
 984
 985
 986
 987
 988
 989
 990
 991
 992
 993
 994
 995
 996
 997
 998
 999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
4245
4246
4247
4248
4249
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262
4263
4264
4265
4266
4267
4268
4269
4270
4271
4272
4273
4274
4275
4276
4277
4278
4279
4280
4281
4282
4283
4284
4285
4286
4287
4288
4289
4290
4291
4292
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312
4313
4314
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333
4334
4335
4336
4337
4338
4339
4340
4341
4342
4343
4344
4345
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355
4356
4357
4358
4359
4360
4361
4362
4363
4364
4365
4366
4367
4368
4369
4370
4371
4372
4373
4374
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458
4459
4460
4461
4462
4463
4464
4465
4466
4467
4468
4469
4470
4471
4472
4473
4474
4475
4476
4477
4478
4479
4480
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558
4559
4560
4561
4562
4563
4564
4565
4566
4567
4568
4569
4570
4571
4572
4573
4574
4575
4576
4577
4578
4579
4580
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607
4608
4609
4610
4611
4612
4613
4614
4615
4616
4617
4618
4619
4620
4621
4622
4623
4624
4625
4626
4627
4628
4629
4630
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640
4641
4642
4643
4644
4645
4646
4647
4648
4649
4650
4651
4652
4653
4654
4655
4656
4657
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678
4679
4680
4681
4682
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771
4772
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813
4814
4815
4816
4817
4818
4819
4820
4821
4822
4823
4824
4825
4826
4827
4828
4829
4830
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861
4862
4863
4864
4865
4866
4867
4868
4869
4870
4871
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899
4900
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959
4960
4961
4962
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032
5033
5034
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066
5067
5068
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100
5101
5102
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116
5117
5118
5119
5120
5121
5122
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134
5135
5136
5137
5138
5139
5140
5141
5142
5143
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170
5171
5172
5173
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235
5236
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260
5261
5262
5263
5264
5265
5266
5267
5268
5269
5270
5271
5272
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434
5435
5436
5437
5438
5439
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451
5452
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484
5485
5486
5487
5488
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582
5583
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631
5632
5633
5634
5635
5636
5637
5638
5639
5640
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681
5682
5683
5684
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723
5724
5725
5726
5727
5728
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973
5974
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125
6126
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163
6164
6165
6166
6167
6168
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233
6234
6235
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
1
00:00:00,000 --> 00:00:10,632

2
00:00:10,632 --> 00:00:12,340
ALLISON BUCHHOLTZ-UA:
Kulħadd id-dritt Kollha.

3
00:00:12,340 --> 00:00:13,520
Merħba lura għat-taqsima.

4
00:00:13,520 --> 00:00:15,315
Huwa taqsima ta 'qabel tagħna.

5
00:00:15,315 --> 00:00:16,542
Huwa tant imdejjaq.

6
00:00:16,542 --> 00:00:19,500
I do not know dak li jien ser tagħmel
mingħajr ma jaraw inti guys kull Tnejn.

7
00:00:19,500 --> 00:00:20,970
I raden għandna just--
forsi nistgħu biss

8
00:00:20,970 --> 00:00:22,710
jiltaqgħu hawn u jkollhom pranzu jew xi ħaġa.

9
00:00:22,710 --> 00:00:23,270
I do not know.

10
00:00:23,270 --> 00:00:24,370
I ser iġibu l-ikel minflok.

11
00:00:24,370 --> 00:00:26,290
Aħna ser biss jitkellmu.

12
00:00:26,290 --> 00:00:29,900
Iżda iva, ġimgħa d-dieħla se
tkun l-aħħar taqsima tagħna.

13
00:00:29,900 --> 00:00:32,390
>> Fuq din in-nota, inti għandek kwizz ġimgħa d-dieħla.

14
00:00:32,390 --> 00:00:35,660
I know I nesa li tagħmel tiegħi, bħal,
ġimgħatejn avviż bil-quddiem aħħar ġimgħa,

15
00:00:35,660 --> 00:00:39,140
iżda nisperaw li inti guys
kien jaf dan kien ġejjin.

16
00:00:39,140 --> 00:00:42,880
Nisperaw li dan huwa wieħed mill-aħħar
midterms għall inti guys għall-semestru.

17
00:00:42,880 --> 00:00:46,950
Iżda li għaddej biex tkopri l-
materjal li konna marret fuq.

18
00:00:46,950 --> 00:00:50,811
Allura mhuwiex simili inti tista 'sempliċement tinsa
madwar erba loops jew varjabbli.

19
00:00:50,811 --> 00:00:52,560
Għaliex aħna tgħallimna
dawk fil-bidu,

20
00:00:52,560 --> 00:00:55,870
dawk huma ovvjament
logħba ġust għall kwizz tiegħek.

21
00:00:55,870 --> 00:01:00,150
>> Huwa ser tkun l-istess format, l-istess
tul, sabiex inti diġà huma użati biex dan.

22
00:01:00,150 --> 00:01:02,330
Hemm għaddej li jkun
coding minn problemi idejn,

23
00:01:02,330 --> 00:01:06,270
forsi xi falza vera,
forsi xi risposta qasira.

24
00:01:06,270 --> 00:01:08,090
Allura inti għandek tkun
familjari mal-format,

25
00:01:08,090 --> 00:01:10,940
speċjalment jekk inti tieħu
it-testijiet prattika.

26
00:01:10,940 --> 00:01:13,950
Imma kif I say hawn, huwa
kumulattiv, iżda aħna qed żgur

27
00:01:13,950 --> 00:01:17,410
ser jkun qed jiffoka fuq
affarijiet mill sitt ġimgħat onward.

28
00:01:17,410 --> 00:01:24,050
Allura, aħna qed probabbilment mhux se
nitolbok dwar kif ħafna bytes

29
00:01:24,050 --> 00:01:26,180
huma kull tip jew
dawk l-xorta ta 'affarijiet,

30
00:01:26,180 --> 00:01:29,730
imma aħna qed probabbilment se tkun
interessati fl-affarijiet bħall listi marbuta,

31
00:01:29,730 --> 00:01:32,750
jew strutturi differenti ta 'data,
jew algoritmi differenti

32
00:01:32,750 --> 00:01:33,960
li konna tkellimna dwar.

33
00:01:33,960 --> 00:01:38,990
Sabiex tagħmel żgur li int qed verament
up fuq dawk, u jekk inti

34
00:01:38,990 --> 00:01:41,590
bżonn xi riżorsi,
here lottijiet ta 'riżorsi.

35
00:01:41,590 --> 00:01:44,790
I biss ħadt tip
ta 'lista ta' malajr hemmhekk.

36
00:01:44,790 --> 00:01:48,330
>> Ġimgħa d-dieħla se jkun kwizz
tirrevedi matul dan iż-żmien.

37
00:01:48,330 --> 00:01:52,290
Mela jekk għandek xi mistoqsijiet
jew suġġetti speċifiċi,

38
00:01:52,290 --> 00:01:56,180
affarijiet speċifiċi dwar l-kwizz li
inti tixtieq li tmur fuq, jekk jogħġbok

39
00:01:56,180 --> 00:02:01,780
jibgħathom lill lili qabel iż-żmien so I tista '
tip ta 'jippreparaw xi materjal għal dak.

40
00:02:01,780 --> 00:02:06,310
U flimkien ma 'dan
taqsima reviżjoni, aħna ser

41
00:02:06,310 --> 00:02:09,616
wkoll tiġi jkollu l-kors kollha
tirrevedi bħal għamilna aħħar darba.

42
00:02:09,616 --> 00:02:11,490
U li għaddej biex tkun
magħmul mill-istess nies.

43
00:02:11,490 --> 00:02:13,030
I do not know jekk dan
jagħmilha aħjar jew agħar,

44
00:02:13,030 --> 00:02:15,670
iżda li għaddej biex tkun me,
Hannah, Davan, u Gabe darb'oħra.

45
00:02:15,670 --> 00:02:18,630
Mela jekk inti tixtieq li ġejjin tara
lkoll banter ma 'xulxin

46
00:02:18,630 --> 00:02:21,270
u jimxu miegħek permezz kwizz
reviżjoni, għandek definittivament

47
00:02:21,270 --> 00:02:22,600
jaslu għal dak it-tnejn li jmiss wkoll.

48
00:02:22,600 --> 00:02:26,210
Allura inti ser ikollu biss Tnejn jam
ppakkjati ta 'reviżjoni kwizz, li hija tajba

49
00:02:26,210 --> 00:02:29,840
għaliex imbagħad inti għandek it-Tlieta
biex jipproċessaw permezz kollox.

50
00:02:29,840 --> 00:02:32,230
>> Iżda definittivament do check
out dawn ir-riżorsi.

51
00:02:32,230 --> 00:02:36,030
Study.csv.net hija bil-bosta, I
think, waħda mill-aktar utli,

52
00:02:36,030 --> 00:02:37,990
aktar minħabba li għandu
lott ta 'kodiċi tal-kampjun,

53
00:02:37,990 --> 00:02:40,490
hija għandha l-Punti Power
ma 'l-noti dwar dan,

54
00:02:40,490 --> 00:02:44,510
li huma verament dak I tfassal aktar
ta 'materjali tiegħi sezzjoni minn.

55
00:02:44,510 --> 00:02:47,480
Jekk ikun hemm xi ħaġa fil preëedenti
sezzjonijiet li I jista 'jkollhom mibgħuta

56
00:02:47,480 --> 00:02:49,920
li inti jista 'ma jkollhomx
gotten, just let me know.

57
00:02:49,920 --> 00:02:52,520
Bħal kodiċi kampjun ġimgħa li għaddiet,
jekk xi ħadd ma jiksbu li,

58
00:02:52,520 --> 00:02:55,930
biss email lili jew come talk lili,
u jien ser tagħmel ċert li inti tikseb dak.

59
00:02:55,930 --> 00:03:02,000
>> Allura ma 'dan, illum aħna ser
li jkun jitkellem dwar JavaScript.

60
00:03:02,000 --> 00:03:04,690
Allura hawnhekk għandna Tommy, li I kien
biss nitkellmu miegħek aħħar lejl.

61
00:03:04,690 --> 00:03:06,670
I love Tommy.

62
00:03:06,670 --> 00:03:09,040
JavaScript huwa favorit tiegħu
lingwa, kif jgħid hawnhekk.

63
00:03:09,040 --> 00:03:14,050
Huma ser jippruvaw u jgħidlek li huwa
mhux l-aħjar, u dawn se jkun żbaljat.

64
00:03:14,050 --> 00:03:16,510
Allura Tommy huwa kaptan JavaScript.

65
00:03:16,510 --> 00:03:19,850
Jien ma pjuttost fuq tiegħu
livell, imma I kien simili,

66
00:03:19,850 --> 00:03:22,900
"Tommy, kif nista jgħallmu
dawn il-gidjien JavaScript? "

67
00:03:22,900 --> 00:03:26,700
So I ltqajna xi tips, so
nisperaw jaħdmu out.

68
00:03:26,700 --> 00:03:31,140
>> Allura affarijiet koppja tkun taf hija li
JavaScript huwa scripting client-side

69
00:03:31,140 --> 00:03:35,560
lingwa, hekk billi PHP hija xi ħaġa
li aħna meqjusa aktar server sekondarji,

70
00:03:35,560 --> 00:03:39,280
kien upload lill-server,
miġbura u esegwiti hemmhekk.

71
00:03:39,280 --> 00:03:42,871
Dan wieħed huwa eżegwit
fuq magna tiegħek stess.

72
00:03:42,871 --> 00:03:43,370
OK?

73
00:03:43,370 --> 00:03:46,960
Allura inti tagħbija xi paġna JavaScript,
u tesegwixxi fuq magna tiegħek.

74
00:03:46,960 --> 00:03:49,910
Sintassi huwa simili ħafna għall C u PHP.

75
00:03:49,910 --> 00:03:52,490
Aħna qed tmur biex jgħaddu
xi eżempji ta 'JavaScript,

76
00:03:52,490 --> 00:03:56,740
u int ser tara li l-
mod nitkellmu dwar varjabbli, loops,

77
00:03:56,740 --> 00:03:58,910
u l-kondizzjonijiet huma kollha simili ħafna.

78
00:03:58,910 --> 00:04:00,500
OK?

79
00:04:00,500 --> 00:04:04,490
Il-fatt li dawn huma tant simili huwa
probabbilment se vjaġġ xi wħud minnkom

80
00:04:04,490 --> 00:04:08,529
up, f'xi każijiet, sempliċement minħabba
inti ser tinkorpora xi ftit ta 'C

81
00:04:08,529 --> 00:04:09,570
fejn m'għandu jkun hemm.

82
00:04:09,570 --> 00:04:14,130
Forsi inti tipprova u t-tip xi ħaġa
meta ma għandhom ikunu ttajpjati.

83
00:04:14,130 --> 00:04:16,540
>> U fuq dan, ħaġa waħda li
jafu hu li l-JavaScript

84
00:04:16,540 --> 00:04:19,360
huwa dinamikament ittajpjat
lingwa, bħall PHP.

85
00:04:19,360 --> 00:04:21,410
Mela jekk inti guys tiftakar
mit-taqsima aħħar ġimgħa,

86
00:04:21,410 --> 00:04:23,680
meta konna tip ta 'kif isir
crash course PHP tagħna,

87
00:04:23,680 --> 00:04:28,860
rajna kif wieħed string jista 'jkun
jiddawwar wieħed int, u ibqa 'sejjer.

88
00:04:28,860 --> 00:04:31,650

89
00:04:31,650 --> 00:04:34,850
It-tip ta 'varjabbli tiegħek
huma determinati fiż-żmien run,

90
00:04:34,850 --> 00:04:38,180
sabiex ikunu jistgħu jinbidlu matul
il-kors tal-programm,

91
00:04:38,180 --> 00:04:43,109
u bl-istess mod li aħna qatt
verament tiddikjara tipi għall-varjabbli PHP,

92
00:04:43,109 --> 00:04:45,900
aħna qed tmur biex tkun qiegħda tagħmel l-istess
Ħaġa hawn, fejn aħna mhux qed verament

93
00:04:45,900 --> 00:04:49,740
kontroll tal-tipi ta 'varjabbli tagħna,
biex ngħidu hekk, bħal nagħmlu fil C.

94
00:04:49,740 --> 00:04:52,200
>> U allura ħaġa waħda
dan huwa pretty jibred huwa

95
00:04:52,200 --> 00:04:54,090
li inti tista 'żball
iċċekkja permezz tal-console,

96
00:04:54,090 --> 00:04:57,240
ma 'din il-funzjoni kbir
console.log, li

97
00:04:57,240 --> 00:05:00,930
jippermettilek li jistampa differenti
Varjabbli jew oġġetti li aħna ser

98
00:05:00,930 --> 00:05:01,750
jitkellmu dwar.

99
00:05:01,750 --> 00:05:05,720
Eżatt bħal aħħar ġimgħa meta I kien
bħal, "użu din il-funzjoni," ma 'dump

100
00:05:05,720 --> 00:05:10,490
minn pset tiegħek dan huwa funzjoni
inti tixtieq li tuża, console.log.

101
00:05:10,490 --> 00:05:12,860
I kien tant sorpriż kif ħafna
istudenti fil-ħinijiet uffiċċju

102
00:05:12,860 --> 00:05:14,530
ma kinitx taf dwar l-funzjoni dump.

103
00:05:14,530 --> 00:05:19,010
U I kien simili, "guys, dan se
jagħmlu l-ħajja tiegħek tant faċli. "

104
00:05:19,010 --> 00:05:22,960
>> Kull dritt, hekk li kien tip ta '
biss ħaġa fil-qosor, bħal dejjem,

105
00:05:22,960 --> 00:05:24,000
għandna eżempji.

106
00:05:24,000 --> 00:05:25,600
Naf li inti guys imħabba dawk.

107
00:05:25,600 --> 00:05:30,930
Allura hawnhekk eżempju ta 'ħafna
sempliċi JavaScript fajl hawn.

108
00:05:30,930 --> 00:05:34,000
Allura huwa biss se toħloq
dan pop-up li tgħid,

109
00:05:34,000 --> 00:05:36,336
"Dinja bonjour," meta inti
jidħol il-paġna, imma ejja

110
00:05:36,336 --> 00:05:37,960
ipprova u jimxu permezz ta 'dan ftit.

111
00:05:37,960 --> 00:05:43,440
Allura ovvjament dan huwa biss
bħall index.html normali tiegħek.

112
00:05:43,440 --> 00:05:50,280
Għalhekk, biss template normali tagħna hawn,
u għandna HTML, għandna ras tagħna,

113
00:05:50,280 --> 00:05:55,580
u bħad bil CSS, kif aħna
inklużi xi fajl barra, id-dritt?

114
00:05:55,580 --> 00:05:59,260
Għandna xi tip iskrittura
test li huwa JavaScript.

115
00:05:59,260 --> 00:06:02,680
U s-sors huwa hello.js,
li huwa jistabbilixxi hawn.

116
00:06:02,680 --> 00:06:05,630
Dan huwa l-fajl kollu ta hello.js.

117
00:06:05,630 --> 00:06:09,080
U allura għandna xi
titolu u xi korp HTML

118
00:06:09,080 --> 00:06:11,050
li aħna ma verament jimpurtak.

119
00:06:11,050 --> 00:06:15,970
>> Dak li jiġri huwa, meta aħna tagħbija din il-paġna,
awtomatikament tesegwixxi din l-iskrittura.

120
00:06:15,970 --> 00:06:16,470
OK?

121
00:06:16,470 --> 00:06:18,790
Allura JavaScript se
tesegwixxi awtomatikament.

122
00:06:18,790 --> 00:06:22,860
Allura dak li għaddej biex tagħmel, li għaddej
li jmorru immedjatament u tesegwixxi dan.

123
00:06:22,860 --> 00:06:24,110
U li għaddej biex jgħidu, "allert.

124
00:06:24,110 --> 00:06:25,190
Hello dinja. "

125
00:06:25,190 --> 00:06:30,840
Liema allert hija l-funzjoni li
attwalment jiġġenera din il-kaxxa.

126
00:06:30,840 --> 00:06:31,540
OK?

127
00:06:31,540 --> 00:06:33,390
Allura huwa tip ta 'kollox jħaddnu.

128
00:06:33,390 --> 00:06:36,700
M'hemm xejn żejjed kellna
biex tagħmel minbarra biss allert,

129
00:06:36,700 --> 00:06:40,000
u mbagħad ikun x'ikun ridna
fi ħdan kaxxa Alert tagħna.

130
00:06:40,000 --> 00:06:40,500
OK?

131
00:06:40,500 --> 00:06:45,080
Allura li jinsab biss sempliċi super
eżempju ta 'dak JavaScript jistgħu jagħmlu.

132
00:06:45,080 --> 00:06:48,110

133
00:06:48,110 --> 00:06:50,070
>> Wieħed mill-verament jibred
affarijiet, kif aħna ser tara,

134
00:06:50,070 --> 00:06:55,150
huwa li JavaScript jippermetti li inti
li jimmanipulaw paġni web tiegħek,

135
00:06:55,150 --> 00:06:57,720
mingħajr ma jkollhom
rikarigu minnhom kull darba.

136
00:06:57,720 --> 00:07:01,830
Mela jekk inti want-- per eżempju, jekk
inti qed jittajjar fuq xi ħaġa,

137
00:07:01,830 --> 00:07:04,300
jekk inti guys qatt
tidher bħal bars Menu,

138
00:07:04,300 --> 00:07:07,360
jew meta inti imbagħad jerġgħu jsiru fuq xi
suġġett, menu Drop-down tidher,

139
00:07:07,360 --> 00:07:08,670
dan għaliex ta JavaScript.

140
00:07:08,670 --> 00:07:09,170
OK?

141
00:07:09,170 --> 00:07:12,670
Allura int mhux tagħbija mill-ġdid il-kollu
paġna biex tikseb dan menu li juru up,

142
00:07:12,670 --> 00:07:17,240
qed tfittex biss għal xi speċifiku
azzjoni li l-utent ikun ħa,

143
00:07:17,240 --> 00:07:21,800
li huma msejħa avvenimenti li aħna ser nikseb
fi, u ladarba inti tara li, inti tgħidli,

144
00:07:21,800 --> 00:07:25,960
"OK, jeditjaw xi ħaġa fuq din il-
paġna u jagħmluha ħarsa differenti,

145
00:07:25,960 --> 00:07:28,270
iżda biss jeditjaw dawn l-affarijiet speċifiċi.

146
00:07:28,270 --> 00:07:29,690
Ma rikarigu-ħaġa sħiħa. "

147
00:07:29,690 --> 00:07:33,110
Allura fil-fatt hu ferm nicer, u
inti ma għandekx biex jerġgħu jitgħabbew paġni tiegħek,

148
00:07:33,110 --> 00:07:34,510
u huwa verament jibred.

149
00:07:34,510 --> 00:07:38,270
>> Dikjarazzjonijiet Allura varjabbli,
sabiex inti tista 'tip ta' tara,

150
00:07:38,270 --> 00:07:40,530
Nressaq fuq quċċata hawn, laxk ittajpjat.

151
00:07:40,530 --> 00:07:42,570
Allura dan huwa simili ħafna PHP.

152
00:07:42,570 --> 00:07:48,770
Aħna ma bżonn li tgħid
JavaScript liema tip nkunu

153
00:07:48,770 --> 00:07:50,740
jistennew kull wieħed minn dawn il-varjabbli li jkun.

154
00:07:50,740 --> 00:07:52,560
Huma jistgħu jkunu x'ikun it-tipi rridu.

155
00:07:52,560 --> 00:07:57,480
Allura inti tinnota f'dan il-każ, aħna niddikjaraw
minnhom ħafna sempliċement, biss bi "var"

156
00:07:57,480 --> 00:08:00,990
u mbagħad xi rridu
isem varjabbli tagħna li tkun.

157
00:08:00,990 --> 00:08:05,680
Ħaġa waħda li wieħed jinnota huwa li meta inti
tpoġġi var quddiem ta 'isem varjabbli,

158
00:08:05,680 --> 00:08:07,520
huwa ambiti dan lokalment.

159
00:08:07,520 --> 00:08:09,320
OK?

160
00:08:09,320 --> 00:08:14,025
Huwa totalment raġonevoli għalik
li kompletament biss iħassar il var

161
00:08:14,025 --> 00:08:18,970
u biss ikollhom i ugwali CS50, u
li tkun biss varjabbli globali.

162
00:08:18,970 --> 00:08:19,580
OK?

163
00:08:19,580 --> 00:08:22,490
Allura inti tista 'initialize żewġ modi,
biss tiddependi fuq kif inti jriduhom.

164
00:08:22,490 --> 00:08:24,448
Mela jekk inti qed initializing
f'perjodu ta 'funzjoni,

165
00:08:24,448 --> 00:08:28,070
u inti tixtieq li varjabbli li
waqfa scoped fi ħdan dik il-funzjoni,

166
00:08:28,070 --> 00:08:31,620
int ser jixtiequ jagħmlu
xi ħaġa bħal var insemmu xi varjabbli,

167
00:08:31,620 --> 00:08:34,270
versus jekk inti tixtieq li
globalment scoped, inti

168
00:08:34,270 --> 00:08:36,240
tista 'biss tagħmel l-isem ta'
l-varjabbli u mbagħad

169
00:08:36,240 --> 00:08:38,270
tkun xi tkun tixtieq li tistabbilixxi ugwali għal.

170
00:08:38,270 --> 00:08:40,230
OK?

171
00:08:40,230 --> 00:08:45,580
>> Dan huwa tip ta 'ħaġa jibred isfel hawn,
għaliex jekk aħna Avviż varjabbli tagħna

172
00:08:45,580 --> 00:08:47,590
b tibda bħala vera.

173
00:08:47,590 --> 00:08:51,280
U liema dan does-- jista
xi ħadd tell me dak li dan ma?

174
00:08:51,280 --> 00:08:54,190

175
00:08:54,190 --> 00:08:55,890
Allura aħna għandna xi allert.

176
00:08:55,890 --> 00:09:00,156
What would tip ta b
jkun fil-bidu?

177
00:09:00,156 --> 00:09:00,905
UDJENZA: Boolean.

178
00:09:00,905 --> 00:09:01,330
ALLISON BUCHHOLTZ-UA: Boolean.

179
00:09:01,330 --> 00:09:01,940
Dritt.

180
00:09:01,940 --> 00:09:07,260
U allura aħna jassenja mill-ġdid b
għal din is-sekwenza, id-dritt?

181
00:09:07,260 --> 00:09:11,170
Mela allura hawnhekk, liema tip ta 'b' jkun?

182
00:09:11,170 --> 00:09:12,480
Hija d jkun string, id-dritt?

183
00:09:12,480 --> 00:09:14,900
Allura x'inhu importanti biex
l-avviż huwa li fl-c, aħna

184
00:09:14,900 --> 00:09:17,330
tista 'kważi qatt do
xi ħaġa bħal dik.

185
00:09:17,330 --> 00:09:22,000
Aħna'd li jkollha varjabbli,
mitfugħa bħala xi ħaġa oħra,

186
00:09:22,000 --> 00:09:27,185
forsi jagħmlu xi funzjoni ma 'żewġ
i, imorru minn ħlas għal integer.

187
00:09:27,185 --> 00:09:31,063
Imma jekk aħna Avviż hawnhekk, b
faċilment bidliet tip.

188
00:09:31,063 --> 00:09:33,760
>> UDJENZA: Stenna, sabiex inti tista 'sempliċement
jkun simili, "jagħmlu b integer?"

189
00:09:33,760 --> 00:09:34,360
>> ALLISON BUCHHOLTZ-UA: Yeah.

190
00:09:34,360 --> 00:09:36,185
Tista 'biss jassenja mill-ġdid b lil integer.

191
00:09:36,185 --> 00:09:36,910
>> UDJENZA: Really?

192
00:09:36,910 --> 00:09:38,035
>> ALLISON BUCHHOLTZ-UA: Yeah.

193
00:09:38,035 --> 00:09:39,810
U allura se jkun hemm int.

194
00:09:39,810 --> 00:09:43,820
Allura varjabbli tiegħek jista 'tinbidel maż-
il-kors tal-programm wisq.

195
00:09:43,820 --> 00:09:46,410
Huma mhumiex strettament ittajpjat.

196
00:09:46,410 --> 00:09:49,180
Huwa ħafna laxk ittajpjat.

197
00:09:49,180 --> 00:09:50,820
OK?

198
00:09:50,820 --> 00:09:54,820
Bażikament varjabbli tiegħek tista 'tagħmel dak kollu
huma jridu, kif aħna tip ta 'raw ma PHP.

199
00:09:54,820 --> 00:09:59,430
Huma jistgħu jagħmlu xi affarijiet crazy, hekk
huwa importanti li jkun pjuttost attenta.

200
00:09:59,430 --> 00:10:01,200
Isem varjabbli tiegħek ukoll.

201
00:10:01,200 --> 00:10:03,450
Jekk inti ma, kollha f'daqqa
int se tkun simili,

202
00:10:03,450 --> 00:10:05,783
"Stenna, ħsibt li dan kien
spag, u issa huwa ta 'int,

203
00:10:05,783 --> 00:10:08,170
u jien ma verament ċert
x'inhu għaddej hawn. "

204
00:10:08,170 --> 00:10:12,410
Allura dan huwa biss eżempju sempliċi ta '
turi kif varjabbli jista 'faċilment

205
00:10:12,410 --> 00:10:15,890
tibdel it-tip tiegħu fuq
il-kors ta 'programm.

206
00:10:15,890 --> 00:10:16,870
>> OK.

207
00:10:16,870 --> 00:10:19,200
Allura dan għandu look
super, super familjari.

208
00:10:19,200 --> 00:10:21,510
Allura dawn huma loops tagħna fil JavaScript.

209
00:10:21,510 --> 00:10:27,780
Dawn huma eżattament l-istess, ħlief għall-
minflok erbgħa int i ugwali żero,

210
00:10:27,780 --> 00:10:30,470
nistgħu biss jgħidu i var ugwali żero.

211
00:10:30,470 --> 00:10:34,100
U allura aħna jista 'jkollhom istess tip tagħna
tal-kundizzjoni, l-istess tip ta 'aġġornament,

212
00:10:34,100 --> 00:10:36,090
i plus plus xogħlijiet biss multa.

213
00:10:36,090 --> 00:10:39,800
Allura fours huma l-istess,
whiles huma l-istess,

214
00:10:39,800 --> 00:10:41,440
u jagħmlu whiles huma eżattament l-istess.

215
00:10:41,440 --> 00:10:44,070
Istess tip ta 'format ġenerali.

216
00:10:44,070 --> 00:10:48,840
Aħna Avviż, erba, f'parentesi,
parentesi, huwa kollha l-istess.

217
00:10:48,840 --> 00:10:51,470
Ukoll se jkun hemm semicolons
meta nikbru għall-eżempju kodiċi.

218
00:10:51,470 --> 00:10:55,250
Int ser ikollok tara huwa pjuttost
ħafna l-istess bħal c.

219
00:10:55,250 --> 00:10:59,770
>> Għal dikjarazzjonijiet funzjoni,
għal darb'oħra, simili ħafna.

220
00:10:59,770 --> 00:11:05,100
Għandna xi funzjoni li biss
jgħid li huwa funzjoni, u mbagħad

221
00:11:05,100 --> 00:11:07,660
l-isem ta 'tagħna
funzjoni, u l-inputs.

222
00:11:07,660 --> 00:11:11,590
U għal darb'oħra jekk aħna Avviż, aħna
m'għandhom l-ebda tipi hawn tkun xi tkun.

223
00:11:11,590 --> 00:11:12,090
Dritt?

224
00:11:12,090 --> 00:11:18,150
Għandna xejn tgħid li dawn
jeħtieġ li tkun ints jew jirdoppja, jew floats.

225
00:11:18,150 --> 00:11:19,530
Huma jistgħu jkunu x'ikunu jridu.

226
00:11:19,530 --> 00:11:23,560
Dak li huwa importanti huwa jinnota li
għandna bżonn li jiktbu funzjoni qabel

227
00:11:23,560 --> 00:11:26,430
let JavaScript jafu li
dan huwa attwalment funzjoni.

228
00:11:26,430 --> 00:11:29,820
>> Allura dan huwa biss ftit somma sempliċi
funzjoni li jirritorna x jew y,

229
00:11:29,820 --> 00:11:33,800
u mbagħad x'hemm wkoll jibred
hija li inti tista 'attwalment

230
00:11:33,800 --> 00:11:35,950
tassenja funzjoni lil varjabbli.

231
00:11:35,950 --> 00:11:41,770
Allura f'dan il-każ, is-somma issa l hija
funzjoni li attwalment ma somma.

232
00:11:41,770 --> 00:11:47,740
Mela jekk tinnota hawn, aħna għandna
funzjoni, isem tal-funzjoni, inputs.

233
00:11:47,740 --> 00:11:48,860
Dritt?

234
00:11:48,860 --> 00:11:52,120
Hawnhekk aħna biss għandhom funzjoni u inputs.

235
00:11:52,120 --> 00:11:54,310
Allura dan jissejjaħ funzjoni anonima.

236
00:11:54,310 --> 00:11:59,265
U din hija xi ħaġa li għandha tkun ġdida
għal ħafna minnkom guys, jekk mhux kollha inti.

237
00:11:59,265 --> 00:12:01,140
Allura bażikament dak li
mezzi huwa li aħna ma

238
00:12:01,140 --> 00:12:03,050
bżonn li l-isem ta 'tagħna
funzjoni f'dan il-każ.

239
00:12:03,050 --> 00:12:06,260
Nistgħu biss jgħidu, "OK, jien ser
ikollhom din il-funzjoni li tesegwixxi, hawnhekk

240
00:12:06,260 --> 00:12:08,550
huma inputs tagħha, u hawnhekk
dak li għaddej biex jagħmlu. "

241
00:12:08,550 --> 00:12:12,540
U speċjalment meta int jassenjaw
funzjoni għal xi varjabbli

242
00:12:12,540 --> 00:12:14,950
li int ser jimmanipulaw,
inti ma neċessarjament

243
00:12:14,950 --> 00:12:17,116
bżonn biex insemmu għaliex
int ser tkun jirreferu

244
00:12:17,116 --> 00:12:20,990
lilha minn dan il-varjabbli
isem, ma b'kull

245
00:12:20,990 --> 00:12:22,840
il-funzjoni kien attwalment imsejħa.

246
00:12:22,840 --> 00:12:23,550
OK?

247
00:12:23,550 --> 00:12:27,810
>> Allura jekk naraw hawn, aħna
ikollhom xi somma varjabbli issa

248
00:12:27,810 --> 00:12:30,920
li huwa ugwali għall-
somma ta 'tlieta u ħamsa.

249
00:12:30,920 --> 00:12:33,070
U aħna se tikseb dan.

250
00:12:33,070 --> 00:12:36,750
U dan kien biss jkollha xi allert,
tlieta flimkien ma 'ħames daqs in-numru.

251
00:12:36,750 --> 00:12:43,950
Dan plus se biss concatenate
ikun x'ikun risposta tagħna kienet fuq il-sekwenza.

252
00:12:43,950 --> 00:12:47,420
Ukoll jibred, plus jistgħu concatenate kordi.

253
00:12:47,420 --> 00:12:53,510
>> Għal JavaScript, kif ma PHP,
HTML, CSS u kif għidna,

254
00:12:53,510 --> 00:12:56,450
lott ta 'dan aħna xorta qed ta' teħid
ir-roti tat-taħriġ off hawn

255
00:12:56,450 --> 00:13:02,030
u inti guys jkollhom ħafna ta 'l-għarfien
kif verament jifhmu dawn l-affarijiet.

256
00:13:02,030 --> 00:13:04,280
Huma qed kemmxejn differenti,
iżda dawn mhux qed hekk barrani

257
00:13:04,280 --> 00:13:09,460
u li inti ma tistax Google affarijiet jew
tfittex lilhom online ma 'skejjel W3.

258
00:13:09,460 --> 00:13:12,755
U aħna qed verament jistennew li inti
guys lil, tip ta ', esperiment

259
00:13:12,755 --> 00:13:14,400
u jitgħallmu fuq tiegħek.

260
00:13:14,400 --> 00:13:19,490
So, I know dan jista 'jidher ftit
inqas bir-reqqa minn uħud mill-affarijiet c

261
00:13:19,490 --> 00:13:21,936
nagħmlu, iżda li attwalment għal raġuni.

262
00:13:21,936 --> 00:13:25,060

263
00:13:25,060 --> 00:13:28,470
Iżda nisperaw mhuwiex wisq
differenti, u mhuwiex kbira.

264
00:13:28,470 --> 00:13:31,940
>> Allura arrays fil JavaScript,
darb'oħra ħafna, simili ħafna.

265
00:13:31,940 --> 00:13:32,460
Dritt?

266
00:13:32,460 --> 00:13:36,520
Għandna xi firxa varjabbli
thats ugwali għal parentesi vojta,

267
00:13:36,520 --> 00:13:40,340
u li jinsab biss firxa vojta.

268
00:13:40,340 --> 00:13:43,420
Dan huwa spiss imsejjaħ
notazzjoni firxa litterali.

269
00:13:43,420 --> 00:13:45,280
Li jinsab biss ħaġa waħda nagħmlu sejħa hija.

270
00:13:45,280 --> 00:13:51,380
Jekk naraw firxa tnejn hawn, aħna għandna xi
firxa litterali li għandha tliet elementi,

271
00:13:51,380 --> 00:13:51,910
dritt?

272
00:13:51,910 --> 00:13:54,640
U allura għandna xi
tielet element var thats

273
00:13:54,640 --> 00:13:58,060
xi varjabbli li jinsab biss
ser iżommu dan string, JS.

274
00:13:58,060 --> 00:14:01,760

275
00:14:01,760 --> 00:14:06,170
>> L-elementi, tajba li l-avviż,
huma separati minn virgoli,

276
00:14:06,170 --> 00:14:07,740
bħad nistgħu nistennew.

277
00:14:07,740 --> 00:14:14,630
U inti tista 'wkoll aċċess dawn, kif għamilna
fis-C, ma din in-notazzjoni indiċi, id-dritt?

278
00:14:14,630 --> 00:14:16,950
Allura differenti minn PHP
issa, aħna qed tmur lura

279
00:14:16,950 --> 00:14:20,180
biss it-tip ta jirreferu
biex l-affarijiet mill-indiċi.

280
00:14:20,180 --> 00:14:22,189
Eżatt bħal C, huwa wkoll indiċi żero.

281
00:14:22,189 --> 00:14:25,230
Inħoss bħal li jkun verament krudili
jekk f'daqqa waħda għamlu JavaScript wieħed

282
00:14:25,230 --> 00:14:30,630
indiċi, u inti kellhom kompletament
naħsbu mill-ġdid kif inti taħseb dwar arrays.

283
00:14:30,630 --> 00:14:36,140
>> Ħaġa waħda jibred huwa li minflok
ta 'wara li do-- jekk inti qatt

284
00:14:36,140 --> 00:14:39,240
riedu it-tul ta 'firxa,
forsi inti jtenni permezz ta 'dan

285
00:14:39,240 --> 00:14:43,430
sakemm issib xi tarf, jew
inti biss taf għalxiex.

286
00:14:43,430 --> 00:14:49,310
Minħabba JavaScript huwa laxka ħafna aktar
modi milli sempliċiment tip, kif naraw hawn,

287
00:14:49,310 --> 00:14:53,310
nistgħu biss tagħmel dan array
akbar għaliex aħna jiddeċiedu li.

288
00:14:53,310 --> 00:14:56,177
Jekk aħna Avviż firxa tlieta
għandu tliet affarijiet biex tibda,

289
00:14:56,177 --> 00:14:58,510
iżda mbagħad kollha f'daqqa,
aħna qed simili, "oh, biss kidding.

290
00:14:58,510 --> 00:15:01,370
Aħna qed attwalment għaddejjin
li jagħmilha 101 affarijiet. "

291
00:15:01,370 --> 00:15:05,300
Mela jekk inti qatt trid tkun taf l-
tul attwali tal-firxa tiegħek,

292
00:15:05,300 --> 00:15:06,680
inti tagħmel dan bħal dan.

293
00:15:06,680 --> 00:15:10,470
U aħna qed tmur biex tara ħafna
ta 'dan notazzjoni fil-eżempji,

294
00:15:10,470 --> 00:15:12,730
iżda bil JavaScript
huwa tipikament ikun x'ikun

295
00:15:12,730 --> 00:15:16,410
oġġett li inti qed jitkellem dwar
dot kwalunkwe tip ta 'funzjoni

296
00:15:16,410 --> 00:15:17,740
inti tixtieq applikati għaliha.

297
00:15:17,740 --> 00:15:18,240
OK?

298
00:15:18,240 --> 00:15:20,520
>> Allura f'dan il-każ, tagħna
oġġett huwa array tnejn,

299
00:15:20,520 --> 00:15:23,470
u aħna ngħidu aħna rridu li l-
tul ta 'firxa tnejn.

300
00:15:23,470 --> 00:15:25,716
Allura dan biss jitlob bħal tul fuq dik.

301
00:15:25,716 --> 00:15:27,090
U li se terġa 'lura tul tiegħek.

302
00:15:27,090 --> 00:15:32,610

303
00:15:32,610 --> 00:15:36,790
Wkoll xi ħaġa li wieħed jinnota
li jekk aħna Avviż arrays tagħna,

304
00:15:36,790 --> 00:15:39,830
b'differenza C, dawn ma jkollhomx
li tkun kollha tal-istess tip.

305
00:15:39,830 --> 00:15:41,670
Dan huwa ferm aktar simili PHP.

306
00:15:41,670 --> 00:15:45,905
JavaScript huwa bażikament bħad
dan meld interessanti ta 'C u PHP.

307
00:15:45,905 --> 00:15:50,020

308
00:15:50,020 --> 00:15:52,170
Allura aħna ser jsibu rwieħhom li.

309
00:15:52,170 --> 00:15:56,750
Għal issa, ejja biss wieħed jassumi
li arrays tiegħek huma bażikament

310
00:15:56,750 --> 00:16:00,640
bħall arrays Ċ, b'mod li
huma żero indiċjati.

311
00:16:00,640 --> 00:16:04,120
OK, hekk li huwa kollox.

312
00:16:04,120 --> 00:16:08,850
Tista 'wkoll biss testendi
firxa li tkun xi indiċi trid.

313
00:16:08,850 --> 00:16:14,260
Billi dan probabbilment SEG
tort fuq inti jew jagħtuk xi żball,

314
00:16:14,260 --> 00:16:15,970
JavaScript huwa simili, "NaH, huwa multa.

315
00:16:15,970 --> 00:16:16,620
I sibt dan.

316
00:16:16,620 --> 00:16:19,460
Aħna ser biss jmorru straight
fejn inti tixtieq li. "

317
00:16:19,460 --> 00:16:24,310
>> OK, hekk l-oġġetti huma importanti ħafna.

318
00:16:24,310 --> 00:16:29,720
You guys se tkun qed tuża ħafna ta 'dawn
fil-sett tiegħek P, jekk niftakar sewwa.

319
00:16:29,720 --> 00:16:34,780
Allura l-ħaġa li dawn huma
simili fl C huma structs.

320
00:16:34,780 --> 00:16:39,290
Allura inti tista 'taħseb about-- meta
immorru eżempju dritt

321
00:16:39,290 --> 00:16:41,810
wara dan Naħseb li taf
jagħmlu ħafna aktar sense--

322
00:16:41,810 --> 00:16:45,830
imma aħna bażikament jużaw l-oġġetti għall-
torganizza ta 'informazzjoni kors relatat.

323
00:16:45,830 --> 00:16:47,780
Meta tkellimna dwar
structs fis-C, aħna sikwit

324
00:16:47,780 --> 00:16:53,405
jitkellmu dwar student li kellhom xi isem,
ID, house, inti taf, il-konċentrazzjoni.

325
00:16:53,405 --> 00:16:56,030
U dan huwa tip ta 'l-istess ħaġa
li nużaw l-oġġetti hawn.

326
00:16:56,030 --> 00:16:59,300
Huwa biss li jorganizzaw
informazzjoni simili.

327
00:16:59,300 --> 00:17:03,620
>> Tista 'wkoll taħseb dawn kif aktar
simili għal assoċjattiva arrays fil-PHP.

328
00:17:03,620 --> 00:17:10,010
Għalhekk dan ikun it-tip tal-ħaġa
fejn għandna xi ċavetta ma 'xi valur,

329
00:17:10,010 --> 00:17:12,859
simili ħafna għall PHP.

330
00:17:12,859 --> 00:17:15,780
Allura inti tista 'initialize xi
oġġett vojta, kif naraw up here,

331
00:17:15,780 --> 00:17:17,390
biss b'ċineg kaboċċi.

332
00:17:17,390 --> 00:17:19,160
Arrays hekk huma parentesi kwadri.

333
00:17:19,160 --> 00:17:21,220
Oġġetti vojta huma ċineg kaboċċi.

334
00:17:21,220 --> 00:17:24,020
Distinzjoni tajjeb li jkollha.

335
00:17:24,020 --> 00:17:27,319
U dawn huma biss tnejn differenti
modi biex jistabbilixxu proprjetajiet.

336
00:17:27,319 --> 00:17:31,460
Allura dan huwa tip ta '
ħafna aktar ta 'mod li

337
00:17:31,460 --> 00:17:35,220
huwa simili għal PHP, mal tagħna
arrays assoċjattiva, bl ewlenin tagħna,

338
00:17:35,220 --> 00:17:39,910
u l-valur tagħna, filwaqt
dan wieħed is-- inti ser

339
00:17:39,910 --> 00:17:41,920
tara dan ħafna aktar fil-JavaScript.

340
00:17:41,920 --> 00:17:43,550
Dan għandu tendenza li jkun il-konvenzjoni.

341
00:17:43,550 --> 00:17:47,660
U fl-istess mod li għamilna
firxa tnejn dot tul, dan huwa qal,

342
00:17:47,660 --> 00:17:51,580
"OK, tagħti me dan
attribut ta dan l-oġġett. "

343
00:17:51,580 --> 00:17:52,110
Dritt?

344
00:17:52,110 --> 00:17:55,660
Allura l-istess mod li kien simili, "tagħti me
it-tul attribut ta 'firxa tnejn, "

345
00:17:55,660 --> 00:17:59,970
dan huwa qal, "tagħti me xi
proprjetà ta 'oġġett vojta tagħna. "

346
00:17:59,970 --> 00:18:02,890
Jew f'dan il-każ, aħna
assenjazzjoni tiegħu lill xi valur hawn.

347
00:18:02,890 --> 00:18:06,200
Iżda int tista 'wkoll aċċess dan il-mod.

348
00:18:06,200 --> 00:18:09,090
>> U allura hawnhekk dan huwa biss
turi żewġ twissijiet differenti.

349
00:18:09,090 --> 00:18:12,320
Allura dan se juru l-allerti
ikun l-istess eżatt,

350
00:18:12,320 --> 00:18:17,150
huwa biss żewġ modi differenti ta '
aċċess għall-element li rridu.

351
00:18:17,150 --> 00:18:19,552
Does li jagħmel sens għal kulħadd?

352
00:18:19,552 --> 00:18:21,510
Inħoss bħal dan wieħed
probabbilment jagħmel aktar sens,

353
00:18:21,510 --> 00:18:23,270
sempliċiment għaliex aħna qed ġejjin off ta 'PHP.

354
00:18:23,270 --> 00:18:26,400
Imma kif nagħmlu iktar eżempji, din
hu litteralment eżattament l-istess.

355
00:18:26,400 --> 00:18:28,170
A lott ta 'dan huwa biss bidla fil-sintassi.

356
00:18:28,170 --> 00:18:30,710

357
00:18:30,710 --> 00:18:33,030
>> OK, so eżempji.

358
00:18:33,030 --> 00:18:34,180
I love eżempji.

359
00:18:34,180 --> 00:18:40,070
Allura hawnhekk hija xi CS50
varjabbli li huwa oġġett,

360
00:18:40,070 --> 00:18:42,160
u aħna taħżen dan kollu
informazzjoni dwar dan.

361
00:18:42,160 --> 00:18:46,680
Allura aħna għandna course, għalliem,
TFS, psets, u taped.

362
00:18:46,680 --> 00:18:51,840
Allura aħna Avviż dawn huma kważi
kollha ta 'tipi differenti.

363
00:18:51,840 --> 00:18:52,340
Dritt?

364
00:18:52,340 --> 00:18:56,230
Allura oġġetti jista 'jaħżen
attributi ta 'tipi differenti.

365
00:18:56,230 --> 00:19:01,220
Nistgħu naħsbu ta this-- huwa ferm
simili għal firxa assoċjattiva tagħna fil-PHP.

366
00:19:01,220 --> 00:19:07,470
Allura ewlenin, il-valur, ewlenin, il-valur,
ewlenin, il-valur, fuq hekk u ibqa 'sejjer hekk.

367
00:19:07,470 --> 00:19:11,230
X'hemm wkoll interessanti bl-istess mod
li jista 'jkollna arrays fi ħdan arrays,

368
00:19:11,230 --> 00:19:14,690
nistgħu wkoll ikollhom oġġetti fi ħdan
oġġetti, jew arrays ġewwa oġġetti.

369
00:19:14,690 --> 00:19:18,410
Int qatt verament limitati għal
biss wieħed wieħed ta 'affarijiet.

370
00:19:18,410 --> 00:19:24,220
Nistgħu nibdew Inceptionesque ħafna, just
iżommu għaddejjin isfel l-toqba fenek hemmhekk.

371
00:19:24,220 --> 00:19:26,080
>> Allura jekk aħna avviż, aħna
għandhom xi kors li

372
00:19:26,080 --> 00:19:31,120
hija sekwenza, għalliem thats string,
u firxa, l int, u Boolean.

373
00:19:31,120 --> 00:19:36,110
Allura kollha ta 'dawn l-affarijiet differenti.

374
00:19:36,110 --> 00:19:39,600
>> Kull dritt, hekk, aħna għandna waħda xulxin.

375
00:19:39,600 --> 00:19:42,930
Allura f'dan il-każ, aħna għandna
firxa ta 'oġġetti.

376
00:19:42,930 --> 00:19:45,320
Hekk biss bħal oġġett
jista 'jkollhom firxa fiha.

377
00:19:45,320 --> 00:19:47,210
Nistgħu wkoll ikollhom firxa ta 'oġġetti.

378
00:19:47,210 --> 00:19:51,250
Dan jista 'jkun utli li
jaħsbu dwar simili għal tip

379
00:19:51,250 --> 00:19:54,260
ta 'kif kellna hash
mejda, kellna firxa

380
00:19:54,260 --> 00:19:56,220
ta 'dawn kollha differenti
tipi ta 'structs dik

381
00:19:56,220 --> 00:19:59,070
kienu pointers għall differenti
lymph u whatnot.

382
00:19:59,070 --> 00:20:01,420
Iżda f'dan il-każ, aħna
ikollhom firxa ta 'oġġetti.

383
00:20:01,420 --> 00:20:04,890
Allura dan huwa simili firxa
arrays ta assoċjattiva.

384
00:20:04,890 --> 00:20:09,430
Allura aħna għandna xi ewwel element ikun
ikunu l-oġġett bl-isem James

385
00:20:09,430 --> 00:20:11,340
u dar Winthrop.

386
00:20:11,340 --> 00:20:14,780
>> You guys tista 'tiftakar
xi ħaġa simili ħafna għal dan

387
00:20:14,780 --> 00:20:21,710
mal-aħħar pset tiegħek, fejn jekk inti
jinġibed xi ħaġa mid-database tiegħek,

388
00:20:21,710 --> 00:20:24,480
l-ewwel tip ta '
ħaġa fil-firxa tiegħek kien

389
00:20:24,480 --> 00:20:27,110
l-informazzjoni kollha dwar
l-ewwel utent li ltaqa dan,

390
00:20:27,110 --> 00:20:30,765
u allura inti kellhom indiċi rwieħhom li
biex jiksbu l-istokk tagħhom jew cache tagħhom

391
00:20:30,765 --> 00:20:32,110
jew whatnot.

392
00:20:32,110 --> 00:20:34,620
Allura dan huwa ferm l-istess
ħaġa, biss ftit bidla

393
00:20:34,620 --> 00:20:39,570
fil-sintassi, il-bidla ftit fil
il-kliem li nużaw biex jiddeskrivu lilhom.

394
00:20:39,570 --> 00:20:45,960
>> Mela jekk ridna, jista 'xi ħadd tell
me dak li dan allert ser jagħmlu hawn?

395
00:20:45,960 --> 00:20:48,780
Jew dak din id-daqsxejn ta '
kodiċi se jagħmel għalina?

396
00:20:48,780 --> 00:20:50,992

397
00:20:50,992 --> 00:20:52,616
UDJENZA: Hija ser jagħtuk l-ismijiet kollha.

398
00:20:52,616 --> 00:20:54,900
ALLISON BUCHHOLTZ-UA: Dritt, hekk
kien biss allert ma 'l-ismijiet

399
00:20:54,900 --> 00:20:57,960
għaliex imur permezz
cottage i, u għalhekk d tibda fuq żero.

400
00:20:57,960 --> 00:21:01,330
Għalhekk jgħidu, OK aħna qed tfittex
f'dan l-ewwel oġġett, li

401
00:21:01,330 --> 00:21:03,210
hija l-ewwel slot fl firxa tagħna.

402
00:21:03,210 --> 00:21:06,900
U jgħid, "agħtini l-
jattribwixxu, l-isem ta 'dak l-oġġett. "

403
00:21:06,900 --> 00:21:09,030
Allura aħna go here, aħna'd
scan, aħna'd ssib l-isem,

404
00:21:09,030 --> 00:21:11,340
u aħna'd jistampa
James, Molly, u Carl.

405
00:21:11,340 --> 00:21:14,410

406
00:21:14,410 --> 00:21:15,799
Kwalunkwe mistoqsijiet s'issa?

407
00:21:15,799 --> 00:21:17,590
JavaScript sfortunatament
int ser tkun

408
00:21:17,590 --> 00:21:20,950
jagħmlu ħafna tfittex up fuq tiegħek
stess, jidhru l-sintassi,

409
00:21:20,950 --> 00:21:21,910
jitħabtu magħha.

410
00:21:21,910 --> 00:21:25,870
Iżda naturalment jien dejjem hawn,
ħinijiet tal-uffiċċju huma dejjem hawn.

411
00:21:25,870 --> 00:21:28,260
I jista 'jkun fuq Tlieta din il-ġimgħa.

412
00:21:28,260 --> 00:21:31,050
Mela jekk int hemm, inti tista '
come żur lili din il-ġimgħa.

413
00:21:31,050 --> 00:21:32,470
Hija d jkun kbir.

414
00:21:32,470 --> 00:21:36,260
>> OK, hekk DOM huwa Mudell Dokument-Għan.

415
00:21:36,260 --> 00:21:38,900
Allura dan huwa biss mod
li aħna simili biex jaħsbu

416
00:21:38,900 --> 00:21:45,720
dwar kif HTML tagħna u kollox
fi ħdanu hija organizzata.

417
00:21:45,720 --> 00:21:49,930
Dan huwa ferm xi ħaġa li
probabbilment se toħroġ fuq kwizz tiegħek.

418
00:21:49,930 --> 00:21:58,150
Naf sena tiegħi, kien simili hawn
File HTML, imla l-DOM għal dan.

419
00:21:58,150 --> 00:21:59,770
U inti biss jimlew affarijiet ftit.

420
00:21:59,770 --> 00:22:01,500
Dawn għandhom ikunu punti faċli nisperaw.

421
00:22:01,500 --> 00:22:03,450
Nisperaw inti ser see--

422
00:22:03,450 --> 00:22:04,590
>> UDJENZA: [inaudible]

423
00:22:04,590 --> 00:22:06,660
>> ALLISON BUCHHOLTZ-UA: Allura
tara din is-siġra hawn?

424
00:22:06,660 --> 00:22:07,200
>> UDJENZA: Yeah.

425
00:22:07,200 --> 00:22:08,949
>> ALLISON BUCHHOLTZ-UA:
Allura dawn se jistaqsu użu

426
00:22:08,949 --> 00:22:11,750
biex timla dak li jmur taħt il-ġisem.

427
00:22:11,750 --> 00:22:15,770
Forsi taħt l-korp, aħna għandna xi
divs jew għandna xi paragrafi,

428
00:22:15,770 --> 00:22:19,160
u aħna ser nitolbok biex timla
siġra ħafna bħal dan.

429
00:22:19,160 --> 00:22:21,440
Allura aħna ser tkun mixi permezz tiegħu.

430
00:22:21,440 --> 00:22:26,120
Allura l-Dokument-Għan
Mudell huwa biss mod

431
00:22:26,120 --> 00:22:31,240
biex jistrutturaw u jaħsbu
dwar HTML tagħna grafikament.

432
00:22:31,240 --> 00:22:33,860

433
00:22:33,860 --> 00:22:35,840
U wkoll meta nikbru
fi aktar JavaScript,

434
00:22:35,840 --> 00:22:37,640
li għaddej biex tkun l-
mod li għandna attwalment

435
00:22:37,640 --> 00:22:39,990
jimmanipulaw differenti
elementi fuq il-paġna.

436
00:22:39,990 --> 00:22:43,980
Għandna bżonn mod biex jaċċessaw kull
ta 'l-affarijiet fil-HTML tagħna,

437
00:22:43,980 --> 00:22:48,050
u għalhekk dan jagħtina ħafna
f'mod standardizzat konkret

438
00:22:48,050 --> 00:22:51,010
madwar paġni web varji biex tagħmel dan.

439
00:22:51,010 --> 00:22:53,440
>> Allura jekk aħna biss walk permezz
dan hawnhekk, naturalment

440
00:22:53,440 --> 00:22:56,790
Dokument tagħna huwa bħall-fajl kollu tagħna.

441
00:22:56,790 --> 00:22:59,350
Li ovvjament jagħmel sens
li huwa l-ogħla ħaġa,

442
00:22:59,350 --> 00:23:03,520
u allura għandna HTML attwali tagħna,
li jikkorrispondi għal din tag hawn.

443
00:23:03,520 --> 00:23:08,480
Ukoll jekk inti fil indent tags tiegħek
kif suppost, allura toħloq din is-siġra DOM

444
00:23:08,480 --> 00:23:10,530
isir sempliċi super.

445
00:23:10,530 --> 00:23:12,400
Allura aħna għandna xi ras hawn.

446
00:23:12,400 --> 00:23:15,780
Għandna xi korp li
naraw zokk off tal HTML,

447
00:23:15,780 --> 00:23:18,530
huwa għalhekk li għandna ras u l-ġisem.

448
00:23:18,530 --> 00:23:22,880
Fi ħdan ras, aħna għandna xi
tag titolu, l-tikketta titolu għan,

449
00:23:22,880 --> 00:23:24,570
hekk aħna nafu li jiġi wara ras.

450
00:23:24,570 --> 00:23:28,040
U fi ħdan titolu tag tagħna,
għandna hello, dinja.

451
00:23:28,040 --> 00:23:28,740
OK?

452
00:23:28,740 --> 00:23:31,311
Allura dak din il-fergħa kollu xellug.

453
00:23:31,311 --> 00:23:34,060
U mbagħad għall-fergħa tal-lemin
hawn, naraw li għandna HTML,

454
00:23:34,060 --> 00:23:38,680
OK aħna ghamilt din il-parti tar-ras,
aħna qed tfittex biss fil-ġisem,

455
00:23:38,680 --> 00:23:40,670
hekk aħna għandna xi żona ġisem.

456
00:23:40,670 --> 00:23:44,350
U fi ħdan dak, l-unika
Ħaġa għandna huwa hello, dinja.

457
00:23:44,350 --> 00:23:45,090
OK?

458
00:23:45,090 --> 00:23:54,130
Jekk kellna affarijiet simili
xi p bracket u mbagħad

459
00:23:54,130 --> 00:23:57,500
hello, dinja, u mbagħad ieħor
p bracket tal addiju, dinja,

460
00:23:57,500 --> 00:24:00,080
rridu naraw żewġ bżieżaq
ġejjin off ta here.

461
00:24:00,080 --> 00:24:05,550
Minħabba li qed kemm taħt tal-ġisem, iżda
dawn qed paragrafi separati f'dan il-każ.

462
00:24:05,550 --> 00:24:11,520
Hemm definittivament prattika
fuq dik fl kwizzijiet preċedenti,

463
00:24:11,520 --> 00:24:14,570
kif ukoll ħafna online fuqha.

464
00:24:14,570 --> 00:24:18,260
OK hekk, dan biss tikri
us tara kollox nicely

465
00:24:18,260 --> 00:24:20,810
u timmanipula l-affarijiet
sistematikament ħafna.

466
00:24:20,810 --> 00:24:21,340
OK?

467
00:24:21,340 --> 00:24:23,640
Nafu eżattament kif
travers permezz din is-siġra,

468
00:24:23,640 --> 00:24:26,910
hekk nafu dak li rridu aċċess.

469
00:24:26,910 --> 00:24:31,690
>> OK hekk dan huwa għaliex irridu
li jkollhom din it-tip ta 'mudell,

470
00:24:31,690 --> 00:24:35,190
hekk li nistgħu nużaw affarijiet bħal dan,
u aħna jifhmu dak li jfisser,

471
00:24:35,190 --> 00:24:38,370
u dawn qed standardizzat
madwar l-affarijiet kollha li nagħmlu.

472
00:24:38,370 --> 00:24:45,900
Allura dokument dot titolu huwa biss
it-titolu ta our-- 'dawn kollha

473
00:24:45,900 --> 00:24:48,960
huma pjuttost awto spjegazzjoni,
Inħobb naħseb.

474
00:24:48,960 --> 00:24:51,660
Allura l-ewwel tlieta
Eżempji huma biss qal,

475
00:24:51,660 --> 00:24:54,770
"OK, biss jagħtu me l-
titolu ta 'din il-paġna web. "

476
00:24:54,770 --> 00:24:58,030
Għalhekk se jtik dak
jikkorrispondi mal-titolu.

477
00:24:58,030 --> 00:25:01,880
>> Dokument dot korp huwa ser jagħtuk
dak kollu li huwa fi ħdan dawk tags ġisem.

478
00:25:01,880 --> 00:25:03,240
Allura inti tista 'timmanipola dik.

479
00:25:03,240 --> 00:25:07,820
U dokument dot dot ġisem
jidħol HTML huwa wieħed ferm jibred,

480
00:25:07,820 --> 00:25:11,660
u forsi mhijiex bħal super
intuwittivi, iżda l-HTML ġewwa

481
00:25:11,660 --> 00:25:13,740
jikkorrispondi għal dan id-dritt hawn.

482
00:25:13,740 --> 00:25:17,410
Mela jekk inti qatt tixtieq li
jimmanipulaw it-test fuq paġna,

483
00:25:17,410 --> 00:25:22,700
tipikament int ser tkun qiegħda tagħmel
xi ħaġa ma 'korp dot HTML ġewwa.

484
00:25:22,700 --> 00:25:23,820
OK?

485
00:25:23,820 --> 00:25:31,341
Allura HTML ġewwa t-tendenza li jirreferu għall
dak li huwa effettivament bejn dawn it-tags.

486
00:25:31,341 --> 00:25:31,840
OK?

487
00:25:31,840 --> 00:25:33,020
U mbagħad funzjonijiet utli.

488
00:25:33,020 --> 00:25:40,390
Mela jekk int riedu li tikseb
kwalunkwe minn dawn, kwalunkwe element,

489
00:25:40,390 --> 00:25:43,140
għandna xi Id-klassi
isem, jew isem tag.

490
00:25:43,140 --> 00:25:47,100
Dan huwa simili ħafna għal
affarijiet għamilna ma CSS, id-dritt?

491
00:25:47,100 --> 00:25:51,360
Fejn għandna xi seletturi li
jikkorrispondu għal jew tikketta, klassi

492
00:25:51,360 --> 00:25:53,800
li aħna tagħtihom, jew Id.

493
00:25:53,800 --> 00:25:55,310
Dan huwa ferm l-istess mod.

494
00:25:55,310 --> 00:26:00,720
Jekk għandek xi ħaġa li
għandu xi klassi ta 'kelb,

495
00:26:00,720 --> 00:26:05,800
u inti tgħidli tikseb elementi bl-isem tag,
u inti tpoġġi klieb fil there-- jew sorry,

496
00:26:05,800 --> 00:26:06,610
isem tal-klassi.

497
00:26:06,610 --> 00:26:07,770
Inti tista 'tpoġġi dot fil hemmhekk.

498
00:26:07,770 --> 00:26:11,780
Huwa ser jirritorna dawk kollha
Elementi lilek li jkollhom dik il-klassi.

499
00:26:11,780 --> 00:26:13,880
Allura inti tista 'timmanipola biss dawk.

500
00:26:13,880 --> 00:26:18,430
Bl-istess mod, forsi inti biss
tixtieq li jimmanipulaw xi header, so

501
00:26:18,430 --> 00:26:20,980
xi header h1, bħal għamilna.

502
00:26:20,980 --> 00:26:24,900
Inti tista 'tagħmel tikseb elementi mill tag
isem, minħabba h1 huwa isem tag.

503
00:26:24,900 --> 00:26:29,270
U bl-istess mod, jekk inti tixtieq li tikseb
xi ħaġa unika, inti tista 'tagħmel tag get.

504
00:26:29,270 --> 00:26:31,100
Get element minn Id.

505
00:26:31,100 --> 00:26:32,710
U huma attwalment lottijiet ta 'dawn.

506
00:26:32,710 --> 00:26:36,300
Dawn huma biss simili tlieta ta 'ħafna ħafna.

507
00:26:36,300 --> 00:26:39,600
Mela jekk inti tmur online, kif
Jien ser tinkoraġġixxi

508
00:26:39,600 --> 00:26:45,342
inti tagħmel, u jagħmlu xi
riċerka fuq tiegħek,

509
00:26:45,342 --> 00:26:48,450
I definitely jirrakkomandaw
tħares lejn dawk kollha.

510
00:26:48,450 --> 00:26:50,880
Huma jistgħu jkunu super
utli, speċjalment meta

511
00:26:50,880 --> 00:26:57,180
inti tixtieq li biss tip ta 'timmanipola
affarijiet speċifiċi ħafna mingħajr ma jkollhom

512
00:26:57,180 --> 00:27:00,390
li jmorru permezz u jippruvaw
biex parse out kollox.

513
00:27:00,390 --> 00:27:03,540
>> OK, hekk l-aħħar ħaġa
huwa JavaScript avvenimenti.

514
00:27:03,540 --> 00:27:10,730
Allura meta I kien jitkellem qabel
dwar jmorru fuq websajt,

515
00:27:10,730 --> 00:27:14,340
u meta inti imbagħad jerġgħu jsiru fuq xi ħaġa,
jew maws hovers fuq xi ħaġa,

516
00:27:14,340 --> 00:27:15,420
xi ħaġa oħra jiġri.

517
00:27:15,420 --> 00:27:17,900
Dan huwa dak li aħna tixtieq
jaħsbu dwar bħala avveniment.

518
00:27:17,900 --> 00:27:23,970
Allura dak li għandna li jistgħu
jkun utli hawnhekk huwa onclick.

519
00:27:23,970 --> 00:27:29,140
Allura minjiera kien fuq imbagħad jerġgħu, li, jien
pretty żgur, huwa biss fuq imbagħad jerġgħu.

520
00:27:29,140 --> 00:27:31,300
Wkoll ton ta 'dawn
li inti tista 'tfittex għall.

521
00:27:31,300 --> 00:27:34,340
Hemm lista sħiħa online
ta 'l-affarijiet differenti

522
00:27:34,340 --> 00:27:37,130
li inti tista 'tisma għall.

523
00:27:37,130 --> 00:27:41,220
>> Iżda avvenimenti JavaScript huma
bażikament biss jirrispondu għal affarijiet

524
00:27:41,220 --> 00:27:42,430
dak l-utent tiegħek qed tagħmel.

525
00:27:42,430 --> 00:27:42,930
Dritt?

526
00:27:42,930 --> 00:27:45,220
Allura l-utent tiegħek ma
xi ħaġa, li avveniment,

527
00:27:45,220 --> 00:27:48,340
u JavaScript ser tirrispondi
madankollu inti tixtieq li.

528
00:27:48,340 --> 00:27:49,770
Hija se jirrispondu kif xieraq.

529
00:27:49,770 --> 00:27:54,630
Allura f'dan il-każ, aħna għandna
xi tieqa dot onload.

530
00:27:54,630 --> 00:27:57,170
Allura dak li dan jgħid hu, "stenna
sakemm mgħobbija l-tieqa ta. "

531
00:27:57,170 --> 00:27:57,780
OK?

532
00:27:57,780 --> 00:28:02,102
Allura meta kollox ta mgħobbija, onload,
allura inti tista 'tesegwixxi din il-funzjoni.

533
00:28:02,102 --> 00:28:03,810
Allura meta l kollox
mgħobbija, int ser

534
00:28:03,810 --> 00:28:07,760
li jkollhom xi buttuna ta 'tfittxija
li gets element minn Id-

535
00:28:07,760 --> 00:28:13,740
u prints kwalunkwe li
element huwa kif l-buttuna Search.

536
00:28:13,740 --> 00:28:17,050
U allura għandna dan il-varjabbli,
nistgħu ngħidu, "OK, onclick."

537
00:28:17,050 --> 00:28:20,390
Allura meta aħna tisma klikk
fuq il-buttuna Search,

538
00:28:20,390 --> 00:28:23,990
jesegwixxi din il-funzjoni, li hija
allert, inti għafast il-buttuna Search.

539
00:28:23,990 --> 00:28:28,910
>> Allura x'jiġri is-- dan huwa sabiħ
rappreżentazzjoni grafika ftit hawn.

540
00:28:28,910 --> 00:28:31,480
Allura tagħbijiet dokument tagħna,
li l-onload tagħna,

541
00:28:31,480 --> 00:28:34,340
insibu Fittex tagħna
buttuna, li hija din.

542
00:28:34,340 --> 00:28:36,570
Aħna qed infittxu buttuna Search tagħna.

543
00:28:36,570 --> 00:28:40,790
U allura meta l-buttuna Search hu
għafast, dan ikun jikkorrispondi għal dritt hawn.

544
00:28:40,790 --> 00:28:41,980
Onclick.

545
00:28:41,980 --> 00:28:47,300
Imbagħad aħna finalment twissija utent tagħna,
li huwa dan l-aħħar linja hawnhekk.

546
00:28:47,300 --> 00:28:48,250
OK?

547
00:28:48,250 --> 00:28:52,960
Allura kull wieħed minn dawn l-erba passi biss
jikkorrispondi għall-erba 'kaxxi

548
00:28:52,960 --> 00:28:55,031
hemm isfel fuq il-qiegħ.

549
00:28:55,031 --> 00:28:56,405
Does li jagħmel sens għal kulħadd?

550
00:28:56,405 --> 00:29:01,120

551
00:29:01,120 --> 00:29:05,200
>> U allura ħaġa waħda li jien biss se
li jsemmu ħafna, fil-qasir ħafna, li I

552
00:29:05,200 --> 00:29:08,660
ninkoraġġukom guys sa
tmur tħares aktar lejn huwa

553
00:29:08,660 --> 00:29:13,210
jQuery, li huwa biss librerija
li hija mibnija fuq quċċata ta 'JavaScript.

554
00:29:13,210 --> 00:29:16,480
Huwa super utli, kif
bl-aktar libreriji.

555
00:29:16,480 --> 00:29:18,320
Hemm lottijiet ta 'funzjonijiet.

556
00:29:18,320 --> 00:29:21,930
Mela jekk hemm qatt xi ħaġa li
inti tixtieq li tagħmel fil JavaScript,

557
00:29:21,930 --> 00:29:24,880
ewwel istint tiegħek
m'għandux ikun biex jaħsbu

558
00:29:24,880 --> 00:29:27,340
ta ', "liema funzjoni għandu
I kodiċi? "Għandu jkun,

559
00:29:27,340 --> 00:29:29,560
"Let me tara xi ħadd huwa
diġà għamlu dan għalija. "

560
00:29:29,560 --> 00:29:32,800
Minħabba disa 'darbiet minn għaxar,
xi ħadd se għamlu dan diġà,

561
00:29:32,800 --> 00:29:35,760
u dawn probabbilment għamlu dan aħjar.

562
00:29:35,760 --> 00:29:39,990
Nies jqattgħu ħafna ħin tagħmel dawn,
u JavaScript huwa użat b'mod wiesa 'ħafna,

563
00:29:39,990 --> 00:29:42,810
sabiex in-nies huma kontinwament
tipprova tagħmel dan aħjar.

564
00:29:42,810 --> 00:29:47,110
U jQuery għandha ħafna ta 'funzjonijiet
li probabbilment se tkun utli għalik

565
00:29:47,110 --> 00:29:50,470
fil-proġett finali tiegħek jekk int
tagħmel xejn ma 'web disinn.

566
00:29:50,470 --> 00:29:53,480
Kif Jien inħobb ngħid, "xogħol
aktar intelliġenti, mhux aktar diffiċli. "

567
00:29:53,480 --> 00:29:57,130
Jekk inti guys tagħmel dan, dan ser ikun kbir.

568
00:29:57,130 --> 00:30:00,330
Meta aħna qed fil-hackathon I do not
jixtiequ li inti tkun kollha enfasizzat.

569
00:30:00,330 --> 00:30:03,600
Irrid li inti tkun simili, "I ltqajna
din. tal jQuery marret lura tiegħi.

570
00:30:03,600 --> 00:30:05,790
I m'għandhomx bżonn li tikteb dawn il-funzjonijiet. "

571
00:30:05,790 --> 00:30:07,636
>> Hekk biss żewġ affarijiet li
ftakar, jien ser

572
00:30:07,636 --> 00:30:10,220
let you guys tħares aktar
fis jQuery fuq tiegħek.

573
00:30:10,220 --> 00:30:13,070
All jien ser ngħid huwa
ma xi affarijiet pretty biża

574
00:30:13,070 --> 00:30:15,220
u jistgħu jagħmlu l-ħajja tiegħek
lott kollu aktar faċli.

575
00:30:15,220 --> 00:30:17,150
Imma dak li inti tixtieq li
għandhom hija x'ikun fajl

576
00:30:17,150 --> 00:30:21,020
li int ser tkun qed tuża fil,
int tmur jridu dawn iż-żewġ linji.

577
00:30:21,020 --> 00:30:25,630
Int ser jridu li l-
iskrittura tal JS jQuery dot JS.

578
00:30:25,630 --> 00:30:28,500
U fil-fatt sors tiegħek
se jkun hemm xi URL.

579
00:30:28,500 --> 00:30:35,870
Jekk inti Google jQuery, Google
attwalment tospita il-fajls kollha għalik.

580
00:30:35,870 --> 00:30:38,950
Allura inti tixtieq li definittivament
input li URL minflok.

581
00:30:38,950 --> 00:30:41,130
I biss jitqiegħed dan hawn
għal raġunijiet ta 'sempliċità tal.

582
00:30:41,130 --> 00:30:45,180
Kollha dan ifisser huwa fejn
issib librerija jQuery tiegħek.

583
00:30:45,180 --> 00:30:48,600
Huwa massiva, sabiex inti ma tridx
li torganizzaha fuq il-kompjuter tiegħek

584
00:30:48,600 --> 00:30:53,390
jekk inti tista 'tevita dan, huwa għalhekk li aħna
tendenza li biss jitqiegħed fil URL Google li

585
00:30:53,390 --> 00:30:55,880
tospita kollha ta 'dawn il-fajls għalik.

586
00:30:55,880 --> 00:30:56,380
OK?

587
00:30:56,380 --> 00:30:58,850
You Google, I wegħda
se jkun hemm.

588
00:30:58,850 --> 00:31:01,200
>> U mbagħad ikun x'ikun
JavaScript fajl li int

589
00:31:01,200 --> 00:31:07,150
jużaw, għalhekk dan huwa biss ftit esterna
JavaScript fajl li inti qed tuża.

590
00:31:07,150 --> 00:31:11,570
Bl-istess mod li aħna noħolqu link għal CSS tagħna
files, dan huwa l-istess tip ta 'ħaġa.

591
00:31:11,570 --> 00:31:15,480
Dan biss links għall-fajl
fejn tiegħek JavaScript huwa.

592
00:31:15,480 --> 00:31:18,970
U għandi xi eżempji
bl sempliċi JavaScript.

593
00:31:18,970 --> 00:31:20,220
Allura aħna ser tkun għaddejja minn ġo fih.

594
00:31:20,220 --> 00:31:27,230
U mbagħad fl-indiċi tiegħek JavaScript,
li huwa tiegħek JavaScript fajl hawn,

595
00:31:27,230 --> 00:31:30,900
dan huwa tip ta 'l-ippakkjar
li inti għandek għall jQuery.

596
00:31:30,900 --> 00:31:33,860
Inti kważi 99.9
mija tal-ħin għaddej

597
00:31:33,860 --> 00:31:36,800
li jkollhom din fil-fajl index.js tiegħek.

598
00:31:36,800 --> 00:31:40,010
Minħabba dak li dan jgħid hu,
"Ma tesegwixxi xejn

599
00:31:40,010 --> 00:31:43,480
sakemm id-dokument tiegħek huwa attwalment
lest, "li huwa eżattament dak li trid.

600
00:31:43,480 --> 00:31:46,600
Għaliex jekk dokument tiegħek mhux lest,
u jQuery jibda nagħmlu l-affarijiet,

601
00:31:46,600 --> 00:31:48,020
huwa biss mess.

602
00:31:48,020 --> 00:31:50,480
Allura inti dejjem tixtieq li jkollok din tgeżwir.

603
00:31:50,480 --> 00:31:55,760
U mbagħad għal affarijiet li jmorru fil hemm, I
għandu jħalli lill perusing stess guys tiegħek ".

604
00:31:55,760 --> 00:32:04,610
>> OK, hekk hemm xi mistoqsijiet dritt
issa dwar JavaScript in ġenerali?

605
00:32:04,610 --> 00:32:07,420
Jew il-mudell DOM?

606
00:32:07,420 --> 00:32:10,780
Jekk le, aħna għandna xi jibred
eżempji li nistgħu jgħaddu,

607
00:32:10,780 --> 00:32:13,120
li inti guys tista 'tgħin lili kodiċi.

608
00:32:13,120 --> 00:32:15,877
Imma jien ukoll se tkun
super sbieħ, u jekk inti

609
00:32:15,877 --> 00:32:17,960
ma jridux jgħidu xejn
għal dawn, li l-multa.

610
00:32:17,960 --> 00:32:20,510
I tista 'wkoll biss jagħtuk eżempji.

611
00:32:20,510 --> 00:32:24,581
Imma xejn fuq il-
PowerPoint qabel nimxu fuq?

612
00:32:24,581 --> 00:32:25,080
Kessaħ.

613
00:32:25,080 --> 00:32:26,990
>> Inħoss bħal inti guys bżonn biex l-enerġija.

614
00:32:26,990 --> 00:32:31,516
So I think we qed tmur biex tibda
b'eżempju parti tiegħi ewwel.

615
00:32:31,516 --> 00:32:33,390
Għandna tliet eżempji,
inti għandek l-għażla tiegħek.

616
00:32:33,390 --> 00:32:37,720
Allura aħna għandna arloġġ, fejn aħna qed tmur
biex jimplimentaw arloġġ attwali li l-

617
00:32:37,720 --> 00:32:41,430
ser taġġorna maż-żmien.

618
00:32:41,430 --> 00:32:43,310
Għandna din il-funzjoni Twitter kbira.

619
00:32:43,310 --> 00:32:44,560
This-- inti taf liema, iżżomm fuq.

620
00:32:44,560 --> 00:32:47,220
Aħna qed tmur biex tagħmel dan jmorru lil hinn.

621
00:32:47,220 --> 00:32:47,950
Bam.

622
00:32:47,950 --> 00:32:49,060
OK.

623
00:32:49,060 --> 00:32:56,132
>> Għandna din il-funzjoni Twitter kbir
hawn, that-- naf, id-dritt?

624
00:32:56,132 --> 00:32:57,090
Huwa ser jkun kbir.

625
00:32:57,090 --> 00:32:58,350
Inti guys eċċitati?

626
00:32:58,350 --> 00:33:01,170
Li ser jgħodd in-numru
ta 'karattri li inti jkunu ħallew,

627
00:33:01,170 --> 00:33:04,520
hekk jekk I tip dritt issa,
ovvjament xorta jgħid 140,

628
00:33:04,520 --> 00:33:06,190
imma aħna nafu li mhux il-każ.

629
00:33:06,190 --> 00:33:08,570
U mbagħad mal-aħħar wieħed tagħna
hawn, ikklikkja hawn biex parti.

630
00:33:08,570 --> 00:33:12,150
X'hemm jiġri huwa meta
aħna ikklikkja, l-isfond tal-

631
00:33:12,150 --> 00:33:13,340
se jibdlu kuluri.

632
00:33:13,340 --> 00:33:17,060
Allura inti guys jkollhom għażliet tiegħek ta '
liema waħda inti tixtieq li tagħmel l-ewwel.

633
00:33:17,060 --> 00:33:19,800
I wegħda I ser jieħdu faċli ħafna fuqek.

634
00:33:19,800 --> 00:33:22,680
Inħoss bħal kulħadd tip
ta 'ftit illum baxx ħafna ċavetta.

635
00:33:22,680 --> 00:33:25,540
So I ser jimxu miegħek permezz kif
aħna se timplimenta dawn kollha.

636
00:33:25,540 --> 00:33:28,520
Jekk inti tixtieq li Chime
fil, li l-kbir, imma jien

637
00:33:28,520 --> 00:33:30,020
jħossu bħal kulħadd ftit għajjien.

638
00:33:30,020 --> 00:33:32,970
So I ser biss jimxu miegħek
permezz ta 'dawn l-eżempji.

639
00:33:32,970 --> 00:33:35,015
Do aħna għandna xi ħaġa li
aħna tixtieq tagħmel l-ewwel?

640
00:33:35,015 --> 00:33:38,140

641
00:33:38,140 --> 00:33:39,475
Kulħadd?

642
00:33:39,475 --> 00:33:41,350
Ebda preferenza?

643
00:33:41,350 --> 00:33:41,867
OK.

644
00:33:41,867 --> 00:33:42,450
Inti taf liema?

645
00:33:42,450 --> 00:33:43,290
Aħna fuq parti.

646
00:33:43,290 --> 00:33:48,380
Inħoss bħal inti guys bżonn little--
hekk, aħna ser nagħmlu l-waħda partit ewwel.

647
00:33:48,380 --> 00:33:48,880
OK.

648
00:33:48,880 --> 00:33:51,470

649
00:33:51,470 --> 00:33:56,930
>> Allura dak li għandna here-- thats
mhux suppost ikunu hemm.

650
00:33:56,930 --> 00:33:57,910
Issa dan huwa tajjeb.

651
00:33:57,910 --> 00:33:59,810
OK.

652
00:33:59,810 --> 00:34:03,110
Allura dak li għandna hawnhekk huwa
biss paġna HTML sempliċi

653
00:34:03,110 --> 00:34:07,840
li inti guys kollha għandhom ikunu super
familjari mal mit aħħar żewġ tiegħek psets.

654
00:34:07,840 --> 00:34:10,212
għandna tip doc tagħna hawn.

655
00:34:10,212 --> 00:34:10,920
Tista 'tara kulħadd?

656
00:34:10,920 --> 00:34:11,420
OK.

657
00:34:11,420 --> 00:34:12,560
Kessaħ.

658
00:34:12,560 --> 00:34:13,900
Għandna HTML tagħna ovvjament.

659
00:34:13,900 --> 00:34:18,360
Għandna xi header li hija
marbuta ma 'karta tal-istil li

660
00:34:18,360 --> 00:34:21,420
biss magħmula font tiegħi sbieħ u kbir u ambizzjuz.

661
00:34:21,420 --> 00:34:23,489
Allura ma joqogħdu jinkwetaw dwar dan.

662
00:34:23,489 --> 00:34:26,437
>> Għandna xi korp ma
sfond Id-OK?

663
00:34:26,437 --> 00:34:28,520
Għaliex aħna qed tmur biex tkun
jinbidlu l-isfond.

664
00:34:28,520 --> 00:34:31,964
Allura meta aħna qed jinbidlu l-
isfond tal-ġisem tagħna,

665
00:34:31,964 --> 00:34:35,965
aħna niftakru minn ġimgħatejn ilu
meta aħna qed jittrattaw ma 'paġni tal-web.

666
00:34:35,965 --> 00:34:36,840
Allura tajjeb li jkollha dik.

667
00:34:36,840 --> 00:34:39,270
U aħna għandna xi Id ugwali parti.

668
00:34:39,270 --> 00:34:43,909
Dan h lira ref ifisser biss li
li għaddej biex tmur l-istess paġna.

669
00:34:43,909 --> 00:34:47,120
U ikklikkja hawn li parti,
huwa għalhekk li meta aħna ikklikkja dan,

670
00:34:47,120 --> 00:34:48,940
dan għandu jinbidel kuluri, Thankfully.

671
00:34:48,940 --> 00:34:54,322
>> U allura għandna xi iskrittura hawnhekk li
huwa biss marbuta ma din il-Parti JS dot

672
00:34:54,322 --> 00:34:58,100
fajl, li hija vojta minħabba
aħna ma jsir xejn s'issa.

673
00:34:58,100 --> 00:35:00,450
U huwa hekk imdejjaq.

674
00:35:00,450 --> 00:35:06,100
Iżda malajr ħafna, se bidla
kuluri, u se jkunu tal-biża.

675
00:35:06,100 --> 00:35:10,520
>> Allura jien biss se jimxu miegħek guys
permezz ta 'kif nistgħu nittrattaw dan.

676
00:35:10,520 --> 00:35:14,030
Allura l-ewwel ħaġa li
aħna tista 'tixtieq li tagħmel,

677
00:35:14,030 --> 00:35:18,050
jekk aħna qegħdin jinbidlu l-isfond ta '
il-korp, l-ewwel ħaġa li għandna tista 'tixtieq

678
00:35:18,050 --> 00:35:22,730
tagħmel huwa attwalment grab
dak il-korp huwa, right?

679
00:35:22,730 --> 00:35:27,690
Allura aħna tixtieq li jkollok somma, tagħna
isfond, u jekk tinnota,

680
00:35:27,690 --> 00:35:29,567
I biss awtomatikament biss tibda ittajpjar.

681
00:35:29,567 --> 00:35:32,400
M'hemm xejn speċjali li aħna
bżonn tagħmel biex JavaScript fajls tagħna.

682
00:35:32,400 --> 00:35:35,820
I tista 'tibda tiddikjara varjabbli,
u tiddikjara funzjonijiet każwali.

683
00:35:35,820 --> 00:35:38,110
U huwa forma ħafna aktar liberi.

684
00:35:38,110 --> 00:35:41,930
Huwa simili ma C, aħna taw inti kollha
dawn ir-regoli iebes, u inti kiber,

685
00:35:41,930 --> 00:35:43,220
hekk aħna qed simili, "go raba.

686
00:35:43,220 --> 00:35:44,000
Ikunu ħielsa.

687
00:35:44,000 --> 00:35:44,870
Tagħmel dak li trid. "

688
00:35:44,870 --> 00:35:46,280
U dan huwa dak JavaScript huwa.

689
00:35:46,280 --> 00:35:48,390
Allura aħna għandna xi isfond hawn.

690
00:35:48,390 --> 00:35:55,900
Bil-mudell DOM tagħna, nafu aħna
tista 'tagħmel dokument dot nikseb element,

691
00:35:55,900 --> 00:36:00,290
u jekk aħna Avviż hawnhekk,
korp tagħna għandha Id.

692
00:36:00,290 --> 00:36:00,930
Dritt?

693
00:36:00,930 --> 00:36:06,310
Allura nistgħu do nikseb dokument billi
Id, u hawnhekk wieħed sempliċi.

694
00:36:06,310 --> 00:36:08,295
X'hemm Id tagħna li aħna rridu hawn?

695
00:36:08,295 --> 00:36:09,170
UDJENZA: Sfond.

696
00:36:09,170 --> 00:36:11,280
ALLISON BUCHHOLTZ-UA: Sfond.

697
00:36:11,280 --> 00:36:12,230
Perfect.

698
00:36:12,230 --> 00:36:14,250
U virgola fi tmiem l.

699
00:36:14,250 --> 00:36:15,610
Li ma marret bogħod s'issa.

700
00:36:15,610 --> 00:36:17,330
Inti xorta jkollok bżonn semicolons tiegħek.

701
00:36:17,330 --> 00:36:17,830
OK.

702
00:36:17,830 --> 00:36:19,690
Allura dak l-ewwel wieħed tagħna.

703
00:36:19,690 --> 00:36:23,880
U meta aħna ikklikkja xi ħaġa, aħna
trid xi ħaġa li jiġri, id-dritt?

704
00:36:23,880 --> 00:36:28,270
Allura aħna tista 'tixtieq xi varjabbli
thats stennija għal klikk.

705
00:36:28,270 --> 00:36:32,410
Dak li aħna qed tmur biex tagħmel hu li aħna qed tmur biex
jagħmlu rabta tagħna aktar simili għal buttuna.

706
00:36:32,410 --> 00:36:43,140
Allura aħna qed tmur biex ikollhom xi buttuna li
ugwali dokument dot tikseb element mill Id.

707
00:36:43,140 --> 00:36:48,670
U jekk jien jitkellem dwar il-
ikklikkja link jew ikklikkja hawn biex parti

708
00:36:48,670 --> 00:36:51,850
link, dak li jista Id tiegħi jkun hawn?

709
00:36:51,850 --> 00:36:52,590
Parti.

710
00:36:52,590 --> 00:36:55,200
Korretta.

711
00:36:55,200 --> 00:36:56,500
OK mhux wisq ħażina s'issa.

712
00:36:56,500 --> 00:36:59,060
Kulħadd tikseb dak li aħna qed tagħmel?

713
00:36:59,060 --> 00:37:02,100
>> OK, hekk issa għandna tagħna
buttuna, u rridu

714
00:37:02,100 --> 00:37:04,140
affarijiet għall-bidla meta aħna ikklikkja fuqha.

715
00:37:04,140 --> 00:37:08,750
Allura jekk aħna niftakru minn PowerPoint tagħna,
ħaġa sempliċi ħafna li nistgħu nagħmlu

716
00:37:08,750 --> 00:37:12,140
huwa biss buttuna dot onclick, id-dritt?

717
00:37:12,140 --> 00:37:14,750

718
00:37:14,750 --> 00:37:18,730
U li għaddej biex ugwali xi funzjoni.

719
00:37:18,730 --> 00:37:20,620
Din hija funzjoni anonimu.

720
00:37:20,620 --> 00:37:24,620
U dan biss as-- attwalment jien
ser jagħmlu dan ftit akbar.

721
00:37:24,620 --> 00:37:27,330
>> Allura dak I biss għamlet
hawnhekk huwa li jien tgħid, OK,

722
00:37:27,330 --> 00:37:31,810
meta aħna ikklikkja buttuna tagħna, li hija
din ir-rabta li aħna biss imsemmija,

723
00:37:31,810 --> 00:37:34,270
aħna ser tesegwixxi
din il-funzjoni anonima.

724
00:37:34,270 --> 00:37:35,845
Aħna ma bżonn xi inputs.

725
00:37:35,845 --> 00:37:37,220
Aħna ma kura dak l-utent jgħid.

726
00:37:37,220 --> 00:37:38,800
Meta ikklikkja fuqha, aħna qed
ser tagħmel dak kollu li rridu,

727
00:37:38,800 --> 00:37:40,660
li hija jibdlu l-kulur fl-isfond.

728
00:37:40,660 --> 00:37:42,640
OK?

729
00:37:42,640 --> 00:37:47,224
Allura hu għalhekk li aħna ma jkollhom xi inputs,
aħna biss ikollhom din il-funzjoni anonima.

730
00:37:47,224 --> 00:37:49,390
U issa aħna qed attwalment għaddejjin
li tikteb din il-funzjoni.

731
00:37:49,390 --> 00:37:55,040
>> Hekk hemm mazz ta 'modi kif inti
jista 'jiġġenera kulur każwali.

732
00:37:55,040 --> 00:37:59,010
Il-mod li għamilt kien li
jiġġeneraw tliet numri bl-addoċċ

733
00:37:59,010 --> 00:38:01,910
u jaqilbuhom għal RGB triple.

734
00:38:01,910 --> 00:38:06,130
Allura dan biss turi inti xi jibred
affarijiet li jekk int simili, "oh,

735
00:38:06,130 --> 00:38:08,464
I-ħtieġa li jiġġeneraw każwali
Numru. "jekk inti Googled dan,

736
00:38:08,464 --> 00:38:09,630
dan huwa dak li inti ssib.

737
00:38:09,630 --> 00:38:17,580
>> Allura aħna għandna tliet differenti
affarijiet, var, mhux aħmar darb'oħra, aħdar.

738
00:38:17,580 --> 00:38:18,080
Dritt?

739
00:38:18,080 --> 00:38:20,740
Għalhekk dawn huma t-tliet
affarijiet li jiffurmaw kulur.

740
00:38:20,740 --> 00:38:22,220
Blue, aħmar, u aħdar.

741
00:38:22,220 --> 00:38:22,960
Kessaħ.

742
00:38:22,960 --> 00:38:27,050
U dak li nistgħu nagħmlu huwa li nafu
li jeħtieġ li jkun bejn 255,

743
00:38:27,050 --> 00:38:30,140
u jekk int stenna sa ftit
ġeneratur numru bl-addoċċ,

744
00:38:30,140 --> 00:38:36,000
inti tista 'tikseb xi ħaġa bħal matematika
dot addoċċ, li jekk inti tħares dan up

745
00:38:36,000 --> 00:38:39,230
ritorni lejn xi numru
bejn żero u wieħed.

746
00:38:39,230 --> 00:38:39,980
OK?

747
00:38:39,980 --> 00:38:44,470
U dak in-numri nagħmlu tagħna
Triples RGB jgħaddi minn bejn?

748
00:38:44,470 --> 00:38:47,240
Zero u liema?

749
00:38:47,240 --> 00:38:49,000
X'jistgħu jitla 'sa?

750
00:38:49,000 --> 00:38:49,950
255.

751
00:38:49,950 --> 00:38:53,320
Mela jekk matematika dot każwali
tmur bejn żero u wieħed,

752
00:38:53,320 --> 00:38:56,365
kif tista irridu li jikkonvertu dan?

753
00:38:56,365 --> 00:38:56,990
UDJENZA: Ħin?

754
00:38:56,990 --> 00:38:57,830
ALLISON BUCHHOLTZ-UA: Yeah, eżattament.

755
00:38:57,830 --> 00:38:58,677
Allura ħin huwa 255.

756
00:38:58,677 --> 00:39:00,888
>> UDJENZA: [inaudible]
Huwa simili [inaudible].

757
00:39:00,888 --> 00:39:02,471
ALLISON BUCHHOLTZ-UA: Matematika dot każwali.

758
00:39:02,471 --> 00:39:03,096
UDJENZA: Kessaħ.

759
00:39:03,096 --> 00:39:04,580
ALLISON BUCHHOLTZ-UA: Iva.

760
00:39:04,580 --> 00:39:06,300
JavaScript biss jieħu ħsieb tat inti.

761
00:39:06,300 --> 00:39:07,580
OK.

762
00:39:07,580 --> 00:39:09,360
Allura nistgħu nagħmlu dan għal dawn kollha.

763
00:39:09,360 --> 00:39:10,540
Dritt?

764
00:39:10,540 --> 00:39:16,480
Matematika dot f'ħinijiet każwali 255.

765
00:39:16,480 --> 00:39:17,740
Kopja dik.

766
00:39:17,740 --> 00:39:18,820
Kessaħ.

767
00:39:18,820 --> 00:39:23,350
Allura l-ħaġa hija, dan jista '
reġgħux lura integer.

768
00:39:23,350 --> 00:39:24,080
Dritt?

769
00:39:24,080 --> 00:39:26,450
Forsi aħna nikseb xi numru
bejn żero u wieħed,

770
00:39:26,450 --> 00:39:32,150
u tikkawża li jkun kemmxejn
off, u RGBs tagħna ma tistax tkun flowts.

771
00:39:32,150 --> 00:39:33,360
Dawn jeħtieġ li jkunu ints.

772
00:39:33,360 --> 00:39:37,610
Mela jekk inti ppruvaw dan, d probabbilment
ikollhom xi mġieba erratiku.

773
00:39:37,610 --> 00:39:38,810
Ikun funky ftit.

774
00:39:38,810 --> 00:39:43,200
Allura dak li nagħmlu huwa aħna tixtieq li tagħmel
żgur li dawn huma ttundjati,

775
00:39:43,200 --> 00:39:45,400
u inti tista 'round jew mod.

776
00:39:45,400 --> 00:39:47,110
I rtondjati art.

777
00:39:47,110 --> 00:39:49,680
So I dejjem għamel żgur
li arrotondonditi.

778
00:39:49,680 --> 00:39:54,440
Imma jmorru off ta 'kemm huwa sempliċi
kien li biss tikseb numru bl-addoċċ,

779
00:39:54,440 --> 00:39:57,920
kif taħseb li aħna
jista sular dan in-numru?

780
00:39:57,920 --> 00:40:00,720
Dan huwa simili ħafna.

781
00:40:00,720 --> 00:40:02,810
Kwalunkwe idea?

782
00:40:02,810 --> 00:40:06,450
Mela jekk każwali kien biss matematika dot
każwali, hekk do you think aħna'd nagħmlu art?

783
00:40:06,450 --> 00:40:09,670
Matematika dot art.

784
00:40:09,670 --> 00:40:11,340
U inti tista 'ukoll tagħmel matematika dot limitu.

785
00:40:11,340 --> 00:40:14,030
Round huwa tip ta ambigwa
għaliex inti ma

786
00:40:14,030 --> 00:40:16,110
taf jekk li jarrotondaw jew jarrotondaw 'l isfel.

787
00:40:16,110 --> 00:40:20,797
Allura tipikament aħna dejjem nagħmlu matematika
dot art, matematika dot limitu.

788
00:40:20,797 --> 00:40:21,380
Iżda honestly--

789
00:40:21,380 --> 00:40:22,780
>> UDJENZA: Does tond art isfel?

790
00:40:22,780 --> 00:40:24,740
>> ALLISON BUCHHOLTZ-UA: Floor rawnds isfel.

791
00:40:24,740 --> 00:40:26,990
U dan huwa biss għażla min-naħa tiegħi.

792
00:40:26,990 --> 00:40:32,370
>> Allura issa għandna tliet numri tagħna
li ġew saltwarjament iġġenerat,

793
00:40:32,370 --> 00:40:36,610
u dak li aħna qed tmur biex tagħmel issa hija aħna qed
biss se jibdlu l-isfond.

794
00:40:36,610 --> 00:40:37,310
OK?

795
00:40:37,310 --> 00:40:41,490
Allura aħna diġà għandhom tagħna
isfond tip ta maħżuna

796
00:40:41,490 --> 00:40:43,280
f'dan element imsejħa l-isfond.

797
00:40:43,280 --> 00:40:47,300
Allura dak li inti ser avviż huwa, jekk
inti lagħbu madwar ma 'dan,

798
00:40:47,300 --> 00:40:50,460
irridu li jibdlu l-istil.

799
00:40:50,460 --> 00:40:53,812
U dan huwa tip ta 'xi ħaġa li
inti Google u ċifra barra,

800
00:40:53,812 --> 00:40:55,020
simili kif il-bidla l-kulur.

801
00:40:55,020 --> 00:40:59,210
>> Iżda l-mod kif inti tagħmel aċċess dan il-kulur huwa
isfond dot dot stil isfond.

802
00:40:59,210 --> 00:41:03,490
Allura dan huwa qal jingħata
dan l-oġġett, l-isfond,

803
00:41:03,490 --> 00:41:06,920
li jirreferi għal dik
element Id up hemm,

804
00:41:06,920 --> 00:41:10,690
aħna qed tmur biex tħares lejn il-
stil fi ħdan l-istil,

805
00:41:10,690 --> 00:41:13,280
aħna qed tmur biex tħares lejn l-isfond.

806
00:41:13,280 --> 00:41:14,270
OK?

807
00:41:14,270 --> 00:41:17,630
U jekk inti tmur u tfittex dan up,
jista 'jagħmel sens ftit aktar,

808
00:41:17,630 --> 00:41:21,930
iżda dan huwa bażikament biss qal,
"Tagħti me dan l-attribut speċifiku ħafna

809
00:41:21,930 --> 00:41:25,770
ta 'dak I jkunu fissru aktar kmieni. "

810
00:41:25,770 --> 00:41:32,340
Allura dak li aħna qed jinbidlu li huwa
xi RGB, għaliex jagħmel sens.

811
00:41:32,340 --> 00:41:34,780
Aħna qed jużaw RGB jittripplika, id-dritt?

812
00:41:34,780 --> 00:41:41,530
U aħna have-- Irrid nagħmel ċert I
jiksbu l-għadd dritt ta 'kwotazzjonijiet fil hawn.

813
00:41:41,530 --> 00:41:43,940
Allura dak li nagħmlu hija li għandna
RGB, u aħna qed tmur

814
00:41:43,940 --> 00:41:46,800
to-- dan huwa simili
konkatenazzjoni, li huwa l-aħmar.

815
00:41:46,800 --> 00:41:50,030

816
00:41:50,030 --> 00:41:52,610
U allura aħna rridu xi comma.

817
00:41:52,610 --> 00:41:59,925
U allura aħna rridu plus aħdar,
mbagħad ftit comma, u xi blu.

818
00:41:59,925 --> 00:42:10,640

819
00:42:10,640 --> 00:42:14,120
>> Allura dawn pluses biss
jfissru bħal konkatenazzjoni.

820
00:42:14,120 --> 00:42:19,810
Allura dan huwa biss toħloq dan
string li għaddej fi ħdan RGB.

821
00:42:19,810 --> 00:42:20,310
OK?

822
00:42:20,310 --> 00:42:23,200

823
00:42:23,200 --> 00:42:26,684
>> UDJENZA: [inaudible] plus imbagħad
l-aħdar plus allura l-aħmar.

824
00:42:26,684 --> 00:42:30,163
>> ALLISON BUCHHOLTZ-UA: Yeah,
minħabba I messed up dak.

825
00:42:30,163 --> 00:42:30,890
Multa li wieħed.

826
00:42:30,890 --> 00:42:32,110
Oh, iżżomm fuq.

827
00:42:32,110 --> 00:42:32,610
No

828
00:42:32,610 --> 00:42:36,770
Minħabba I bżonn tagħmel ċert
li sibt dawn kollha id-dritt.

829
00:42:36,770 --> 00:42:39,680

830
00:42:39,680 --> 00:42:43,950
So I se tispjega fid momento uno.

831
00:42:43,950 --> 00:42:47,040
Aħdar, blu, perfetta.

832
00:42:47,040 --> 00:42:47,971
Issa jien jsir.

833
00:42:47,971 --> 00:42:48,470
Nemmen.

834
00:42:48,470 --> 00:42:51,570

835
00:42:51,570 --> 00:42:52,530
>> OK.

836
00:42:52,530 --> 00:42:58,085
Allura dak li din hija, huwa dan l-isfond
se jiġu stabbiliti għal xi sekwenza.

837
00:42:58,085 --> 00:42:58,585
Dritt?

838
00:42:58,585 --> 00:42:59,710
Li huwa dak li għandna hawnhekk.

839
00:42:59,710 --> 00:43:05,870
Huwa ser jkun hemm xi RGB 255 comma
255 żero comma, jew kwalunkwe numru li

840
00:43:05,870 --> 00:43:06,512
jkollhom hemmhekk.

841
00:43:06,512 --> 00:43:08,220
Allura aħna qed tagħmel hawn,
għandna xi string.

842
00:43:08,220 --> 00:43:11,910
U dak li rridu nagħmlu, hija aħna qed
tip ta 'dinamikament ħolqien

843
00:43:11,910 --> 00:43:14,010
li meta aħna fil-fatt tmexxi dan il-programm.

844
00:43:14,010 --> 00:43:16,570
Allura din hija xi sekwenza.

845
00:43:16,570 --> 00:43:20,290
Plus concatenates ma
il-valur li għandu aħmar,

846
00:43:20,290 --> 00:43:23,320
li concatenates dan ma '
comma, li concatenates dan

847
00:43:23,320 --> 00:43:26,090
ma 'dak li ħadra hija, u
fuq hekk, u ibqa 'sejjer.

848
00:43:26,090 --> 00:43:26,660
OK?

849
00:43:26,660 --> 00:43:32,210
Sa l-aħħar ħafna, li hija l-
għeluq parentesi ta 'dan RGB hawn.

850
00:43:32,210 --> 00:43:32,800
OK?

851
00:43:32,800 --> 00:43:37,230
>> Allura dak li dan se
jiġġeneraw xi kmand verament

852
00:43:37,230 --> 00:43:42,770
dan huwa RGB ta 'tliet numri
li l-isfond issa huwa stabbilit li.

853
00:43:42,770 --> 00:43:43,940
OK?

854
00:43:43,940 --> 00:43:46,510
Mela ejja ara jekk dan jaħdem.

855
00:43:46,510 --> 00:43:49,720
Nispera li ma, għaliex jekk
ma, jien ser tkun imdejjaq reali.

856
00:43:49,720 --> 00:43:50,250
Oh no.

857
00:43:50,250 --> 00:43:52,710
OK, iżżomm fuq.

858
00:43:52,710 --> 00:43:56,730
Żgur isfond
dot dot stil isfond.

859
00:43:56,730 --> 00:43:59,569
Jien definittivament nieqsa
xi ħaġa biss żgħira.

860
00:43:59,569 --> 00:44:00,610
Ma inti guys mibegħda li?

861
00:44:00,610 --> 00:44:04,020
Meta huwa biss żball ftit żgħira?

862
00:44:04,020 --> 00:44:04,990
Isfond Almighty.

863
00:44:04,990 --> 00:44:08,391

864
00:44:08,391 --> 00:44:08,890
RGB.

865
00:44:08,890 --> 00:44:09,765
>> UDJENZA: [inaudible]

866
00:44:09,765 --> 00:44:11,729

867
00:44:11,729 --> 00:44:12,770
ALLISON BUCHHOLTZ-UA: No

868
00:44:12,770 --> 00:44:14,050
I ppruvaw dan qabel il-klassi.

869
00:44:14,050 --> 00:44:16,570
Għandi kollox għamilt qabel
klassi fil-każ I kien simili,

870
00:44:16,570 --> 00:44:17,970
"Stenna, dak ma I do wrong?"

871
00:44:17,970 --> 00:44:23,190
Minħabba I kien simili, "I probabbilment se
mess dan up f'xi punt. "

872
00:44:23,190 --> 00:44:24,150
Plus aħdar.

873
00:44:24,150 --> 00:44:26,250
Kollox Dehra huwa
concatenated korrett.

874
00:44:26,250 --> 00:44:29,620

875
00:44:29,620 --> 00:44:30,520
OK.

876
00:44:30,520 --> 00:44:31,870
>> UDJENZA: [inaudible]

877
00:44:31,870 --> 00:44:33,810
>> ALLISON BUCHHOLTZ-UA: Oh, hemm inti tmur.

878
00:44:33,810 --> 00:44:35,520
Dan huwa dak I meħtieġa.

879
00:44:35,520 --> 00:44:36,805
Ħares lejn dak.

880
00:44:36,805 --> 00:44:40,090
Tiffany biex isalvaw.

881
00:44:40,090 --> 00:44:40,590
Perfect.

882
00:44:40,590 --> 00:44:41,090
OK.

883
00:44:41,090 --> 00:44:43,834
Issa ejja ara jekk jaħdem.

884
00:44:43,834 --> 00:44:44,816
Oh my God.

885
00:44:44,816 --> 00:44:45,641
OK.

886
00:44:45,641 --> 00:44:46,140
Żomm fuq.

887
00:44:46,140 --> 00:44:48,280
>> UDJENZA: Spazju wara t-tieni plus.

888
00:44:48,280 --> 00:44:50,310
>> ALLISON BUCHHOLTZ-UA: Liema wieħed?

889
00:44:50,310 --> 00:44:52,910
Oh stenna, iżżomm fuq.

890
00:44:52,910 --> 00:44:54,870
Jilbsu Ispazju?

891
00:44:54,870 --> 00:44:57,209
>> UDJENZA: It-tieni plus
l-konkatenazzjoni aħdar.

892
00:44:57,209 --> 00:44:58,250
ALLISON BUCHHOLTZ-UA: Oh.

893
00:44:58,250 --> 00:44:59,570
UDJENZA: M'hemm l-ebda spazju
wara l-plus, yeah.

894
00:44:59,570 --> 00:45:00,790
ALLISON BUCHHOLTZ-UA: You
m'għandekx bżonn li, but--

895
00:45:00,790 --> 00:45:01,190
UDJENZA: Oh, inti ma?

896
00:45:01,190 --> 00:45:01,910
ALLISON BUCHHOLTZ-UA: Huwa jistenna pretty.

897
00:45:01,910 --> 00:45:02,530
UDJENZA: OK.

898
00:45:02,530 --> 00:45:03,030
OK.

899
00:45:03,030 --> 00:45:05,170
>> ALLISON BUCHHOLTZ UA:
Ejja naraw jekk dan jaħdem.

900
00:45:05,170 --> 00:45:05,670
OK.

901
00:45:05,670 --> 00:45:07,836
Jien ovvjament naqset bi
dan demo, li tfakkarni

902
00:45:07,836 --> 00:45:12,810
ta 'lecture l-ġimgħa l-oħra,
imma naf dan se taħdem.

903
00:45:12,810 --> 00:45:15,860
Naf li dan se taħdem.

904
00:45:15,860 --> 00:45:16,580
Tant qrib.

905
00:45:16,580 --> 00:45:22,330
Sakemm I aċċidentalment mħassra
iskrittura tiegħi fuq dan wieħed.

906
00:45:22,330 --> 00:45:24,035
Le, huwa parti dot JS.

907
00:45:24,035 --> 00:45:25,776
OK iżżomm fuq.

908
00:45:25,776 --> 00:45:28,650
Jien ser Kopja ta 'din, u jien ukoll
biss jmorru ħassar kollox,

909
00:45:28,650 --> 00:45:30,108
minħabba I kellha din ħidma qabel.

910
00:45:30,108 --> 00:45:32,470

911
00:45:32,470 --> 00:45:33,770
>> I wegħda taħdem.

912
00:45:33,770 --> 00:45:36,160
Jekk le, jiena ser nuruk dak li l Tommy hu.

913
00:45:36,160 --> 00:45:38,890
U hemm.

914
00:45:38,890 --> 00:45:42,380
>> UDJENZA: Inti referenzar parti
dot CSS, u huwa ftit JS parti dot.

915
00:45:42,380 --> 00:45:45,940
>> ALLISON BUCHHOLTZ-UA: Ah, sew
dritt hawnhekk hija JS dot parti.

916
00:45:45,940 --> 00:45:49,187
OK, dak li ma nagħmel differenti?

917
00:45:49,187 --> 00:45:50,520
OK, aħna ser tara jekk dan jaħdem issa.

918
00:45:50,520 --> 00:45:54,180

919
00:45:54,180 --> 00:45:54,980
Bam.

920
00:45:54,980 --> 00:46:02,110
So, I do not know dak li għamilt b'mod differenti,
iżda dan huwa dak li għandu jiġri.

921
00:46:02,110 --> 00:46:03,230
Kinda jibred.

922
00:46:03,230 --> 00:46:06,650
I għafast fuq dan, bħal, dejjem.

923
00:46:06,650 --> 00:46:11,185
Iżda nistgħu nippruvaw u ara dak li għamilt
differenti li dan wieħed kellu.

924
00:46:11,185 --> 00:46:14,560
I do not know dwarek guys, iżda dan
jistenna bażikament dak I biss kiteb.

925
00:46:14,560 --> 00:46:17,950
Kien hemm probabbilment nieqsa
punto virgola x'imkien hija ħaġa tiegħi.

926
00:46:17,950 --> 00:46:22,064
Attwalment wara, I think I kienet nieqsa
semicolon dritt hawn fil-fatt.

927
00:46:22,064 --> 00:46:24,230
Imma I ma setax jara għaliex
kien off l-iskrin.

928
00:46:24,230 --> 00:46:29,040
>> Imma jekk aħna Avviż, dan huwa pretty
ħafna eżattament dak I biss kiteb.

929
00:46:29,040 --> 00:46:33,010
Naħseb probabbilment l-parti l-agħar dwar
dan huwa biss tip ta 'dan il-ħaġa dritt

930
00:46:33,010 --> 00:46:36,830
hawn, il-fehim
dak li qed jagħmel hemmhekk.

931
00:46:36,830 --> 00:46:42,230
Dawn xorta ta 'affarijiet titgħallem
verament ftit minn Googling u onestament

932
00:46:42,230 --> 00:46:42,880
biss tipprova.

933
00:46:42,880 --> 00:46:46,770
Jekk taħseb li hemm xi
attribut, hemm probabbilment.

934
00:46:46,770 --> 00:46:48,382
Sabiex jippruvaw dan.

935
00:46:48,382 --> 00:46:49,090
Ara x'jiġri.

936
00:46:49,090 --> 00:46:53,000
As I said, hemm ħafna ta '
esperimentazzjoni bil JavaScript,

937
00:46:53,000 --> 00:46:56,810
u PHP, u dak kollu li
Jittieħed, u CSS speċjalment.

938
00:46:56,810 --> 00:47:00,046
Dik hija l-unika vera
mod biex jifhmu dan.

939
00:47:00,046 --> 00:47:07,100
>> OK, hekk wara li fiasco ma parti
JS dot, għandna żewġ għażliet oħra.

940
00:47:07,100 --> 00:47:10,650
Għandna arloġġ jew Twitter.

941
00:47:10,650 --> 00:47:12,190
Huma qed kemm interessanti.

942
00:47:12,190 --> 00:47:17,720
Forsi mhux daqshekk gost kif partit,
li kellhom strobing ftit jibred

943
00:47:17,720 --> 00:47:19,595
Ħaġa fl-aħħar.

944
00:47:19,595 --> 00:47:21,714
Do you guys xi preferenza?

945
00:47:21,714 --> 00:47:22,380
UDJENZA: Arloġġ?

946
00:47:22,380 --> 00:47:22,950
ALLISON BUCHHOLTZ-UA: Arloġġ?

947
00:47:22,950 --> 00:47:23,450
OK.

948
00:47:23,450 --> 00:47:25,390
Kessaħ.

949
00:47:25,390 --> 00:47:30,460
>> Għalhekk għal darb'oħra, għandna tagħna
fajl JavaScript vojta.

950
00:47:30,460 --> 00:47:35,800
U kif naraw hawn, aħna
ikollhom xi HTML sempliċi ħafna.

951
00:47:35,800 --> 00:47:40,010
Għandna folja stil tagħna, li biss
formati dak li għandu look like.

952
00:47:40,010 --> 00:47:42,860
Għandna div tagħna ma
ID tal-arloġġ, li

953
00:47:42,860 --> 00:47:44,420
biss jgħid, "dan għandu jkun arloġġ."

954
00:47:44,420 --> 00:47:47,650
U aħna għandna rabta tagħna
għall-fajl JavaScript tagħna

955
00:47:47,650 --> 00:47:51,400
thats fatt se
jiġġeneraw arloġġ tagħna għalina.

956
00:47:51,400 --> 00:47:56,060
Minħabba li l-ħaġa jibred, hija li inti tista '
sett JavaScript biex tiffriska awtomatikament

957
00:47:56,060 --> 00:47:56,963
innifsu.

958
00:47:56,963 --> 00:47:57,810
OK?

959
00:47:57,810 --> 00:48:01,580
Allura minflok ta 'stennija għall-
utent biex hit Riffriskar fuq paġna

960
00:48:01,580 --> 00:48:03,840
sabiex inti tista 'tikseb
time aġġornata, JavaScript

961
00:48:03,840 --> 00:48:06,760
tista 'taġġorna dan madankollu huwa jħobb.

962
00:48:06,760 --> 00:48:12,082
>> Allura, kif ma 'l-aħħar wieħed tagħna, ridna
aċċess isfond tagħna, id-dritt?

963
00:48:12,082 --> 00:48:14,790
Allura dak li taħseb jista 'jkun il-
ewwel ħaġa li rridu nagħmlu hawnhekk?

964
00:48:14,790 --> 00:48:19,538
Jekk aħna qed tip ta 'jmorru off
dan it-tip ta 'paradigma hawn?

965
00:48:19,538 --> 00:48:22,200
Aħna probabilment tixtieq li
aċċess arloġġ tagħna, id-dritt?

966
00:48:22,200 --> 00:48:24,724
Allura, aħna għandna xi var
arloġġ, li equals--

967
00:48:24,724 --> 00:48:26,140
liema do aħna naħsbu li għaddej biex tkun?

968
00:48:26,140 --> 00:48:29,290

969
00:48:29,290 --> 00:48:42,670
Dokument dot jiksbu element by-- I wkoll
imħabba Sublime-- Id u Id tagħna huwa arloġġ.

970
00:48:42,670 --> 00:48:43,585
Virgola.

971
00:48:43,585 --> 00:48:45,710
Ltqajna biex jagħmlu ċert li tikseb
dawk semicolons din id-darba,

972
00:48:45,710 --> 00:48:47,835
għaliex inħoss bħal dik
kienet il-problema aħħar darba.

973
00:48:47,835 --> 00:48:55,980
OK hekk, kif I kien biss qal ma tipprova
li jkollhom JavaScript jġedded innifsu,

974
00:48:55,980 --> 00:48:59,655
hemm din il-funzjoni kbir, I
jafu li daħal fis-sena li għaddiet handy,

975
00:48:59,655 --> 00:49:02,780
M'inix ċert li taqa 'fil handy għal dan
pset, iżda huwa msejjaħ intervall sett.

976
00:49:02,780 --> 00:49:05,640

977
00:49:05,640 --> 00:49:08,200
U dan huwa attwalment verament
jiksaħ jekk inti guys tagħmel xejn

978
00:49:08,200 --> 00:49:11,460
biż-żmien jew jkollna
informazzjoni aġġornata.

979
00:49:11,460 --> 00:49:13,700
Fuq websajt għal finali
proġett, dan huwa probabbilment

980
00:49:13,700 --> 00:49:16,240
funzjoni inti tixtieq li
nikseb super familjari magħhom.

981
00:49:16,240 --> 00:49:19,730
Allura dak sett intervall ma huwa li
aħna qed tmur biex tagħtiha funzjoni,

982
00:49:19,730 --> 00:49:21,830
u kemm ta 'spiss suppost
sejħa din il-funzjoni.

983
00:49:21,830 --> 00:49:22,430
OK?

984
00:49:22,430 --> 00:49:26,890
>> Allura f'dan il-każ, aħna qed biss ser
joħolqu xi funzjoni anonima mill-ġdid,

985
00:49:26,890 --> 00:49:31,530
OK, li hija se tikseb
data tagħna, u l-ħin tagħna,

986
00:49:31,530 --> 00:49:33,780
u mbagħad taġġorna l-affarijiet u l-wiri.

987
00:49:33,780 --> 00:49:35,130
Allura aħna ser joqogħdu jinkwetaw dwar dan.

988
00:49:35,130 --> 00:49:39,120
Aħna ser ikunu simili jiġġenera arloġġ hawn.

989
00:49:39,120 --> 00:49:41,750
Imma dak li għandna bżonn huwa kif
spiss li jġedded lilha.

990
00:49:41,750 --> 00:49:43,930
Allura f'dan il-każ, huwa biss millisekondi.

991
00:49:43,930 --> 00:49:46,877
Allura aħna qed biss tmur biex
do 100 millisekonda.

992
00:49:46,877 --> 00:49:48,210
Of course, kompletament arbitrarja.

993
00:49:48,210 --> 00:49:50,600
Jekk int riedu li taġġorna
ħafna aktar bil-mod, inti tista '.

994
00:49:50,600 --> 00:49:53,300
Nistgħu mess madwar
bl-intervall sett,

995
00:49:53,300 --> 00:49:57,240
kemm hu kbir intervall tagħna huwa wara nikbru
arloġġ ħidma, li nisperaw I ser

996
00:49:57,240 --> 00:49:59,660
issiru.

997
00:49:59,660 --> 00:50:04,110
Allura dan huwa biss qal, "OK, sejħa
din il-funzjoni kull 100 millisekonda. "

998
00:50:04,110 --> 00:50:04,805
OK?

999
00:50:04,805 --> 00:50:07,280
Li kollox ma.

1000
00:50:07,280 --> 00:50:12,290
>> Allura dak li rridu funzjoni tagħna li
tagħmel huwa irridu li jkollna xi data

1001
00:50:12,290 --> 00:50:14,200
u xi żmien huwa dak
aħna qed tmur biex ikollhom.

1002
00:50:14,200 --> 00:50:19,740
Allura Nistgħu tibda bil tagħna
data ugwali xi ħaġa,

1003
00:50:19,740 --> 00:50:22,708
u l-ħin tagħna ugwali xi ħaġa
li aħna ma nafx.

1004
00:50:22,708 --> 00:50:26,070

1005
00:50:26,070 --> 00:50:29,300
Jew attwalment, aħna biss bżonn id-data, minħabba
data se jinkludu kollox.

1006
00:50:29,300 --> 00:50:34,310

1007
00:50:34,310 --> 00:50:40,010
Għal darb'oħra jekk inti biss Google xejn dwar
dak li inti trid tagħmel, jekk inti tikteb, "OK,

1008
00:50:40,010 --> 00:50:41,980
I rridu nġibu l-ħin
via JavaScript, "huwa

1009
00:50:41,980 --> 00:50:45,890
se jtik din kbir
funzjoni msejħa data get.

1010
00:50:45,890 --> 00:50:48,664
Litteralment, ħafna affarijiet
li inti tixtieq li tagħmel,

1011
00:50:48,664 --> 00:50:50,830
JavaScript huwa se jkollu
dan isir għalik diġà.

1012
00:50:50,830 --> 00:50:55,770
Allura huwa litteralment simili ġodda
nikseb data, li hija creating--

1013
00:50:55,770 --> 00:50:58,600
jew id-data l-ġdida, rather--
li qed jiġġenera

1014
00:50:58,600 --> 00:51:03,690
xi oġġett li jirrappreżenta id-data.

1015
00:51:03,690 --> 00:51:08,200
>> U dak li aħna qed tmur biex tagħmel hawnhekk hija
dan is-- jien ser jikteb dan,

1016
00:51:08,200 --> 00:51:10,820
u mbagħad jispjegaw dak li tagħmel.

1017
00:51:10,820 --> 00:51:12,560
So I ser tagħmel ċert I nikseb dan id-dritt.

1018
00:51:12,560 --> 00:51:17,950

1019
00:51:17,950 --> 00:51:23,440
>> OK, iva, liema din il-funzjoni
ma, hija aħna qed biss

1020
00:51:23,440 --> 00:51:30,680
ħolqien l-HTML li attwalment
se jmorru fi Id div tagħna ta 'arloġġ.

1021
00:51:30,680 --> 00:51:34,610
Allura dak li dan se tkun qiegħda tagħmel
huwa biss jiġġeneraw xi spag, OK?

1022
00:51:34,610 --> 00:51:38,510
Dan huwa mbagħad se tkun
trapjantati fis HTML tagħna.

1023
00:51:38,510 --> 00:51:42,130
Bażikament dak li għaddej biex tagħmel hu
x'ikun we-- dak I ser nuruk

1024
00:51:42,130 --> 00:51:49,070
hija li irrispettivament għandna ngħidu HTML huwa,
aħna qed tmur biex jissostitwixxu dan it-test hawn

1025
00:51:49,070 --> 00:51:51,090
ma 'kwalunkwe HTML huwa.

1026
00:51:51,090 --> 00:51:56,390
Allura dan se jippermetti
us għall-bidla arloġġ tagħna dot

1027
00:51:56,390 --> 00:52:00,940
HTML milli sempliċiment it-test ta 'dan il-
għandu jkun arloġġ, li juru fil-fatt

1028
00:52:00,940 --> 00:52:05,630
in-numri u l-affarijiet li aħna kura
dwar, u fil-fatt tkun o'clock.

1029
00:52:05,630 --> 00:52:09,810
>> Allura dak li aħna qed tmur biex tagħmel hu nkunu
ser tibda jiġġeneraw din HTML.

1030
00:52:09,810 --> 00:52:16,520
Allura bl-istess mod li aħna użati
biex tagħmel plus ugwali għal kulħadd interi,

1031
00:52:16,520 --> 00:52:20,461
inti issa tista 'tagħmel dan għal kordi,
ħlief li għaddej biex concatenate lilhom.

1032
00:52:20,461 --> 00:52:20,960
Dritt?

1033
00:52:20,960 --> 00:52:26,070
Kif rajna bil-partit dot JS, dan biss
concatenates kollha dawn l-affarijiet flimkien.

1034
00:52:26,070 --> 00:52:31,970
Allura inti tista 'concatenate bits differenti ta'
HTML minn varjazzjonijiet, jew bits ta 'spag

1035
00:52:31,970 --> 00:52:33,750
li tikteb out
yourself, u dan biss

1036
00:52:33,750 --> 00:52:38,650
verament jippermetti li inti dinamikament
jiġġeneraw HTML, li huwa pretty jibred.

1037
00:52:38,650 --> 00:52:42,040
Mela jekk għandek xi ħaġa
ħafna utent speċifiku,

1038
00:52:42,040 --> 00:52:44,130
dan jista 'jippermetti li inti tagħmel dan.

1039
00:52:44,130 --> 00:52:47,550
>> Allura aħna għandna HTML, li jien ser
u jippruvaw jagħmlu ċert I nikseb dan id-dritt.

1040
00:52:47,550 --> 00:52:49,890
Allura aħna qed tmur biex tagħmel xi header h1.

1041
00:52:49,890 --> 00:52:53,610
Allura x'inhu importanti li tirrealizza hawnhekk
hija li dan huwa attwalment biss HTML.

1042
00:52:53,610 --> 00:52:54,460
Dritt?

1043
00:52:54,460 --> 00:52:56,610
Aħna miktub attwali
HTML code fil hawn, huwa

1044
00:52:56,610 --> 00:53:01,090
mhux biss string fil-normal
mod li aħna se taħseb dwarha.

1045
00:53:01,090 --> 00:53:02,930
Allura aħna għandna xi HTML.

1046
00:53:02,930 --> 00:53:04,940
Dan huwa kkunsidrat string hawn għalkemm.

1047
00:53:04,940 --> 00:53:10,380
U nagħmlu data dot-- we
rridu nġibu sigħat tagħna.

1048
00:53:10,380 --> 00:53:12,910
Għal darb'oħra, jekk ġejt biex tfittex
up xejn dwar id-data,

1049
00:53:12,910 --> 00:53:16,160
dan se jgħidlek dawn huma kollha
l-attributi dik id-data għandha.

1050
00:53:16,160 --> 00:53:17,670
U hawnhekk dak li inti tista 'tuża fuqha.

1051
00:53:17,670 --> 00:53:20,620
Għalhekk probabbilment ikollu affarijiet simili
nikseb sigħat, u jiksbu minuti,

1052
00:53:20,620 --> 00:53:24,669
u jiksbu sekondi, u jiksbu millisekondi,
u li jaf x'iktar li jkunu.

1053
00:53:24,669 --> 00:53:27,210
Imma jekk inti tħares lejn il-
dokumentazzjoni, dan kollu se jkun hemm.

1054
00:53:27,210 --> 00:53:31,980
>> Allura aħna għandna nikseb sigħat,
u allura aħna rridu

1055
00:53:31,980 --> 00:53:35,614
biex concatenate li with-- jien
ser jiċċaqalqu dan aktar hawn.

1056
00:53:35,614 --> 00:53:38,780
Allura jekk aħna qed jiġġeneraw dritt issa, aħna qed
attwalment jiġġeneraw il-ħin, id-dritt?

1057
00:53:38,780 --> 00:53:43,590
Għandna sigħat, u mbagħad x'hemm
bejn sigħat u minuti?

1058
00:53:43,590 --> 00:53:45,080
Għandek b'semicolon, id-dritt?

1059
00:53:45,080 --> 00:53:48,010
Allura aħna tixtieq li tagħmel xi virgola hawn.

1060
00:53:48,010 --> 00:53:51,780
U allura aħna rridu nġibu tagħna
minuti, sabiex fl-istess mod

1061
00:53:51,780 --> 00:53:56,450
li għandna data dot nikseb sigħat,
kif jista nikbru minuti tagħna?

1062
00:53:56,450 --> 00:54:01,542
Huwa litteralment data dot tikseb
minuti, li I tip ta 'simili.

1063
00:54:01,542 --> 00:54:03,250
Huwa simili, "oh, kif
do I nikseb minuti tiegħi? "

1064
00:54:03,250 --> 00:54:05,850
I biss nikseb minuti tiegħi.

1065
00:54:05,850 --> 00:54:07,500
>> OK.

1066
00:54:07,500 --> 00:54:10,990
U allura għandna kolon ieħor hawnhekk.

1067
00:54:10,990 --> 00:54:16,350
U allura jekk irridu li tikseb tagħna
sekondi, kif jista nikbru tieni tagħna?

1068
00:54:16,350 --> 00:54:17,400
Data dot tikseb sekondi.

1069
00:54:17,400 --> 00:54:20,390

1070
00:54:20,390 --> 00:54:21,590
Naħseb li huwa pretty jibred.

1071
00:54:21,590 --> 00:54:23,589
U x'hemm importanti li
tirrealizza, huwa li aħna wkoll

1072
00:54:23,589 --> 00:54:31,730
jeħtieġ li tagħlaq tag HTML tagħna hawn, għaliex
għandu xorta jkun HTML validu, hekk h1.

1073
00:54:31,730 --> 00:54:33,481
Kessaħ.

1074
00:54:33,481 --> 00:54:43,110
>> Allura wara li, nistgħu nagħmlu arloġġ
dot HTML ġewwa huwa ugwali għal HTML.

1075
00:54:43,110 --> 00:54:43,930
OK?

1076
00:54:43,930 --> 00:54:46,470
Mela ftakar kif għidt
HTML ġewwa bażikament

1077
00:54:46,470 --> 00:54:50,610
jieħu dak kollu li huwa bejn il-
żewġ tikketti li aħna tkellem dwar

1078
00:54:50,610 --> 00:54:54,470
u inserzjonijiet jew jimmanipula
kollu li hu fil hemmhekk?

1079
00:54:54,470 --> 00:54:58,290
Allura dak li dan ma, jekk
immorru lura għall-arloġġ tagħna,

1080
00:54:58,290 --> 00:55:04,180
hija li arloġġ tirreferi għal
kollox fi ħdan dan div.

1081
00:55:04,180 --> 00:55:09,770
Dan huwa l-HTML ġewwa
ta 'dan div arloġġ Id.

1082
00:55:09,770 --> 00:55:13,930
U hekk li għaddej biex jibdlu lil
l-HTML li aħna biss ġġenerat,

1083
00:55:13,930 --> 00:55:16,750
li, li, wieħed jittama,
wieħed jittama, wieħed jittama,

1084
00:55:16,750 --> 00:55:21,026
se juru l-ħin id-dritt issa.

1085
00:55:21,026 --> 00:55:23,960
Ser naraw.

1086
00:55:23,960 --> 00:55:25,170
Of course.

1087
00:55:25,170 --> 00:55:26,860
Kwistjonijiet tekniċi Allura ħafna.

1088
00:55:26,860 --> 00:55:31,480
Just-- Allison ta jien
off llum game tiegħi guys.

1089
00:55:31,480 --> 00:55:34,136
OK, li x-xogħlijiet.

1090
00:55:34,136 --> 00:55:35,760
arloġġ dot HTML ġewwa.

1091
00:55:35,760 --> 00:55:42,097
Kien HTML Really?

1092
00:55:42,097 --> 00:55:43,180
Ukoll dan huwa dak li jiġri.

1093
00:55:43,180 --> 00:55:48,750
Meta inti ma tistax tara xi ħaġa, inti
biss ħarsa lejn kodiċi sors tiegħek.

1094
00:55:48,750 --> 00:55:49,250
OK.

1095
00:55:49,250 --> 00:55:51,912

1096
00:55:51,912 --> 00:55:54,870
Do you tixtieq tkun taf xogħol jibred madwar
li aħna qed tmur biex tagħmel id-dritt hawn?

1097
00:55:54,870 --> 00:55:55,740
>> UDJENZA: Tista 'tagħmel l-ittri kapitali?

1098
00:55:55,740 --> 00:55:56,580
L-ittri kapitali?

1099
00:55:56,580 --> 00:55:58,996
Minħabba li għandek tikseb sigħat,
u mbagħad jiksbu minuti.

1100
00:55:58,996 --> 00:56:02,590
>> ALLISON BUCHHOLTZ-UA: Hija
hu li tikseb siegħa u get-- oh.

1101
00:56:02,590 --> 00:56:04,945
You are-- stilla tad-deheb.

1102
00:56:04,945 --> 00:56:08,114

1103
00:56:08,114 --> 00:56:09,030
Dan kollu test, guys.

1104
00:56:09,030 --> 00:56:13,630

1105
00:56:13,630 --> 00:56:17,330
I wegħda li kien qed jaħdem qabel klassi.

1106
00:56:17,330 --> 00:56:22,590
>> OK, imma xi ħaġa jibred hija li tkun taf
li inti tista also-- jekk xi kultant

1107
00:56:22,590 --> 00:56:26,560
fajls esterni tiegħek huma
jkollna ftit crazy,

1108
00:56:26,560 --> 00:56:30,960
inti tista 'ukoll biss jitqiegħed straight
fil hawn, li għandhom tendenza li tiffissa l-affarijiet.

1109
00:56:30,960 --> 00:56:35,840
Ħlief dan huwa simili verament ikrah.

1110
00:56:35,840 --> 00:56:38,050
Of course format kollox.

1111
00:56:38,050 --> 00:56:41,425
Kun ċert li huwa kollu pretty.

1112
00:56:41,425 --> 00:56:41,925
OK.

1113
00:56:41,925 --> 00:56:47,200

1114
00:56:47,200 --> 00:56:50,621
>> Jien ridt li jagħmlu l-demos jibred,
u dawn qed biss ma tkunx qed taħdem out.

1115
00:56:50,621 --> 00:56:51,555
OK.

1116
00:56:51,555 --> 00:56:53,890
Script arloġġ var.

1117
00:56:53,890 --> 00:57:00,350
Anyways, x'hemm importanti huwa
li dan huwa l-mod ġenerali

1118
00:57:00,350 --> 00:57:01,870
li inti format JavaScript.

1119
00:57:01,870 --> 00:57:04,490
Kif tistgħu taraw, jista 'jkun
ħafna finicky kultant,

1120
00:57:04,490 --> 00:57:08,780
anki meta kien litteralment
taħdem żewġ sekondi ilu.

1121
00:57:08,780 --> 00:57:11,820
Jew mhux tnejn tieni ilu,
iżda ħafna, ħafna riċentement.

1122
00:57:11,820 --> 00:57:16,070
>> Allura biex turi li inti dak li għandu look like,
u biex turi li inti li jien mhux crazy,

1123
00:57:16,070 --> 00:57:19,730
u li kollox huwa eżattament l-
istess, dan huwa dak li għandu look like.

1124
00:57:19,730 --> 00:57:27,410
Int biss se jagħmlu din il-parti ta 'fuq
hawn, u jekk inti ħsieb sors page,

1125
00:57:27,410 --> 00:57:32,160
jekk tinnota, huwa ma xi
affarijiet crazier, I simplifikata dan.

1126
00:57:32,160 --> 00:57:35,710
Ukoll, kreditu lill Tommy
McWilliam, li fil-fatt

1127
00:57:35,710 --> 00:57:38,810
għenuni joħolqu dawn l-eżempji,
li hija għaliex naf jaħdmu.

1128
00:57:38,810 --> 00:57:41,560
Minħabba Tommy huwa kaptan JavaScript.

1129
00:57:41,560 --> 00:57:43,180
Imma jekk aħna Avviż, aħna għandna xi sett.

1130
00:57:43,180 --> 00:57:45,170
Għandna funzjoni arloġġ tagħna hawn.

1131
00:57:45,170 --> 00:57:48,450
Dan huwa JavaScript li
aħna biss kiteb, jew xi ftit minnha.

1132
00:57:48,450 --> 00:57:51,470
Aħna biss kiteb dan wieħed dritt hawn.

1133
00:57:51,470 --> 00:57:54,260
U hu għandu żejda
funzjoni li biss pads dan

1134
00:57:54,260 --> 00:57:57,790
billi jpoġġi żero qabel
ittra jew qabel numru jekk huwa

1135
00:57:57,790 --> 00:57:59,412
biss waħda minnhom.

1136
00:57:59,412 --> 00:58:02,120
Allura jekk tinnota, dan huwa pretty
ħafna eżattament dak li aħna biss kiteb.

1137
00:58:02,120 --> 00:58:06,230
Inti għandek xi arloġġ varjabbli li
għandha element tagħna, jiksbu l-element bl-identità,

1138
00:58:06,230 --> 00:58:07,252
li huwa arloġġ.

1139
00:58:07,252 --> 00:58:08,960
Għandna intervall sett tagħna
funzjoni, li l-

1140
00:58:08,960 --> 00:58:12,670
funzjoni anonima
li tesegwixxi kollha ta 'dan.

1141
00:58:12,670 --> 00:58:16,940
Għandna xi wħud bdew sensiela ta '
HTML li aħna mbagħad dinamikament

1142
00:58:16,940 --> 00:58:20,750
jiġġeneraw billi jkollhom xi
header h1, concatenating

1143
00:58:20,750 --> 00:58:23,950
mal jiksbu l-siegħa, plus
kolon tagħna, plus jkollna

1144
00:58:23,950 --> 00:58:26,860
l-minuti, plus ieħor
kolon, plus sekondi tagħna,

1145
00:58:26,860 --> 00:58:29,330
u finalment l-HTML jispiċċa għal dan.

1146
00:58:29,330 --> 00:58:34,210
U allura aħna aġġornament arloġġ tagħna
dot HTML ġewwa biex HTML,

1147
00:58:34,210 --> 00:58:37,640
u aħna taġġorna kull 100 millisekonda.

1148
00:58:37,640 --> 00:58:39,060
OK?

1149
00:58:39,060 --> 00:58:42,470
>> Ara I wegħda jien ma crazy.

1150
00:58:42,470 --> 00:58:43,440
I do not know.

1151
00:58:43,440 --> 00:58:47,160
I do not know għaliex ma simili me.

1152
00:58:47,160 --> 00:58:54,030
Inħoss bħal jistenna l-istess,
imma apparentement dan hates me.

1153
00:58:54,030 --> 00:58:59,600
>> Mela ejja ara jekk round tlieta tmur aħjar.

1154
00:58:59,600 --> 00:59:00,970
We qed madwar biex tara.

1155
00:59:00,970 --> 00:59:02,910
M'inix ċert kif dan se jmorru.

1156
00:59:02,910 --> 00:59:06,700
Huwa kulħadd għall-inqas jkollna l-
cons, bħall biss il-tema ġenerali

1157
00:59:06,700 --> 00:59:08,480
ta JavaScript, għalkemm?

1158
00:59:08,480 --> 00:59:15,660
Nispera li l--inqas utli, aktar
milli turi li huwa ftit finicky.

1159
00:59:15,660 --> 00:59:21,190
Imma tiegħek sett problema se tkun ferm divertenti.

1160
00:59:21,190 --> 00:59:22,590
Huwa ser jkun kbir.

1161
00:59:22,590 --> 00:59:24,820
Dan mhux se jkun pjuttost bħala tedious
kif dan, jien ma naħsibx.

1162
00:59:24,820 --> 00:59:28,100
Int ser tikseb effettivament
jara l-affarijiet verament jibred.

1163
00:59:28,100 --> 00:59:31,734
>> Allura l-aħħar iżda mhux l-inqas,
aħna ser tipprova l-waħda Twitter.

1164
00:59:31,734 --> 00:59:32,900
Ninsab verament jibża issa, guys.

1165
00:59:32,900 --> 00:59:35,762
I do not know kif dan se jmorru.

1166
00:59:35,762 --> 00:59:39,930
Iżda biss li jtik ftit
aktar togħma, u dan huwa fil-fatt

1167
00:59:39,930 --> 00:59:44,190
kordi timmanipula u
inputs, dak li aħna qed tmur biex tagħmel

1168
00:59:44,190 --> 00:59:50,960
huwa, jekk aħna Avviż hawn ma HTML--
dan wieħed għandu ftit more--

1169
00:59:50,960 --> 00:59:57,200
għandna xi żona test, li
jikkorrispondi għal dan il-qasam it-test hawn.

1170
00:59:57,200 --> 00:59:58,030
OK?

1171
00:59:58,030 --> 01:00:00,420
U li għandha Id tat-test.

1172
01:00:00,420 --> 01:00:04,520
We restyled hija daqsxejn ftit
ma 'xi wisa' u għoli

1173
01:00:04,520 --> 01:00:07,310
li konna predeterminat,
u għandna H1,

1174
01:00:07,310 --> 01:00:11,260
li ftit huwa wieħed header tagħna li
tirrappreżenta karattri tagħna xellug.

1175
01:00:11,260 --> 01:00:14,570
Aħna tatha xi Id mill
karattri li jifdal,

1176
01:00:14,570 --> 01:00:18,660
u allura għandna xi skript
hawn, li jien verament

1177
01:00:18,660 --> 01:00:20,790
bit-tama tal-ħin terza
l-seħer hawnhekk, guys.

1178
01:00:20,790 --> 01:00:26,750
>> Allura dak li rridu nagħmlu,
fl-istess mod ġenerali

1179
01:00:26,750 --> 01:00:31,480
li aħna ghamilt ma 'JS arloġġ dot
u parti JS dot kif konna ndunat,

1180
01:00:31,480 --> 01:00:35,980
huwa konna beda mill-fatt li ħtif
l-affarijiet li aħna jimpurtahom, right?

1181
01:00:35,980 --> 01:00:42,330
Allura f'dan il-każ, hemm żewġ
affarijiet li aħna jimpurtahom, OK?

1182
01:00:42,330 --> 01:00:47,199
Ħaġa waħda li aħna qed attwalment tip ta '
tħares lejn u tpinġija data minn,

1183
01:00:47,199 --> 01:00:48,990
u ħaġa waħda li
aħna qed jinbidlu fil-fatt.

1184
01:00:48,990 --> 01:00:52,110

1185
01:00:52,110 --> 01:00:53,730
Allura hemm HTML tagħna.

1186
01:00:53,730 --> 01:01:00,370
Jekk dan huwa il-paġna web tagħna hawn, x'hemm
id-data li aħna qed tħares lejn?

1187
01:01:00,370 --> 01:01:03,860
Huwa ser tkun x'ikun
it-test fil-kaxxi tagħna, id-dritt?

1188
01:01:03,860 --> 01:01:05,310
Sabiex ikun x'ikun I tip fil hawn.

1189
01:01:05,310 --> 01:01:08,150
Dak hu li jien trid tkun taf, jew
dan huwa dak li nixtieq li tħares lejn.

1190
01:01:08,150 --> 01:01:10,690
U dak li għaddej biex tkun
jinbidlu fuq il-paġna web tagħna?

1191
01:01:10,690 --> 01:01:13,550

1192
01:01:13,550 --> 01:01:14,880
Il-karattri li jifdal.

1193
01:01:14,880 --> 01:01:19,550
Allura bl-istess mod, irridu li
tibda billi initializing varjabbli

1194
01:01:19,550 --> 01:01:22,030
li attwalment jżommu fuq dawk l-elementi.

1195
01:01:22,030 --> 01:01:22,890
OK?

1196
01:01:22,890 --> 01:01:29,930
Allura jekk ikollna xi var
li huwa qasam test tagħna,

1197
01:01:29,930 --> 01:01:33,681
u aħna għandna xi var li huwa fadal.

1198
01:01:33,681 --> 01:01:34,180
Dritt?

1199
01:01:34,180 --> 01:01:36,190
Allura dawn huma ser
istiva dawn iż-żewġ affarijiet.

1200
01:01:36,190 --> 01:01:42,370
Allura l-istess tip ta 'ħaġa,
dokument dot-- OK, jien

1201
01:01:42,370 --> 01:01:45,920
ser tagħmel ċert li dan huwa
sejjer jaħdem dan iż-żmien.

1202
01:01:45,920 --> 01:01:49,620
I am sod ħafna.

1203
01:01:49,620 --> 01:01:53,310
OK, hekk jekk irridu tagħna
żona ta 'test, skond

1204
01:01:53,310 --> 01:01:55,710
biex HTML tagħna, x'hemm identifikatur tagħna?

1205
01:01:55,710 --> 01:01:56,420
X'hemm Id tagħna?

1206
01:01:56,420 --> 01:01:59,500

1207
01:01:59,500 --> 01:02:05,540
Huwa biss se tkun test għaliex
dan joħloq il-qasam it-test tagħna, OK,

1208
01:02:05,540 --> 01:02:10,320
u Id tagħna huwa test, b'tali mod li
kif nistgħu grab x'hemm fil hemmhekk.

1209
01:02:10,320 --> 01:02:12,130
OK, virgola.

1210
01:02:12,130 --> 01:02:13,940
Jien ser tkun super
preċiża dwar dan,

1211
01:02:13,940 --> 01:02:16,300
għaliex nixtieq dan jaħdem dan iż-żmien.

1212
01:02:16,300 --> 01:02:22,120
OK, jagħmlu l-istess ħaġa,
nikseb element minn Id.

1213
01:02:22,120 --> 01:02:25,970
Ninsab verament mintix dak li
ikkawżat l-tnejn l-oħra li mess up.

1214
01:02:25,970 --> 01:02:29,750
OK, allura f'dan il-wieħed,
dak li rridu biex taċċessaha?

1215
01:02:29,750 --> 01:02:30,760
X'hemm Id tagħna hawn?

1216
01:02:30,760 --> 01:02:33,980

1217
01:02:33,980 --> 01:02:36,261
Għandna Id ieħor
HTML tagħna, x'inhu?

1218
01:02:36,261 --> 01:02:37,552
UDJENZA: Karattri jifdal.

1219
01:02:37,552 --> 01:02:39,343
ALLISON BUCHHOLTZ-UA:
Karattri li jifdal.

1220
01:02:39,343 --> 01:02:43,360

1221
01:02:43,360 --> 01:02:44,330
>> OK.

1222
01:02:44,330 --> 01:02:46,010
Kessaħ.

1223
01:02:46,010 --> 01:02:49,800
Allura jien biss ser
tikteb din verament mgħaġġel.

1224
01:02:49,800 --> 01:02:53,706

1225
01:02:53,706 --> 01:02:55,330
Jien biss ser jikteb dan fit-tieni.

1226
01:02:55,330 --> 01:02:56,190
Allura żona test.

1227
01:02:56,190 --> 01:02:59,550

1228
01:02:59,550 --> 01:03:06,180
X'hemm interessanti hija B function-- hemm
lottijiet ta 'funzjonijiet li mhux biss

1229
01:03:06,180 --> 01:03:09,690
jikkorrispondu għall tiegħek
maws, iżda tastiera tiegħek.

1230
01:03:09,690 --> 01:03:10,190
OK?

1231
01:03:10,190 --> 01:03:16,540
Allura inti tista 'tgħid meta xi muftieħ huwa
ippressat, inti tista 'tagħmel affarijiet bħal dik.

1232
01:03:16,540 --> 01:03:20,450
Allura l-wieħed li aħna qed jużaw
tissejjaħ fuq ċavetta up, li

1233
01:03:20,450 --> 01:03:25,320
jgħid, "jekk inti stajt ippressat kwalunkwe ewlenin fuq
tastiera tiegħek, meta l-utent ikun neħħa

1234
01:03:25,320 --> 01:03:28,064
finger tagħhom off li buttuna,
u l-muftieħ sar ippressat,

1235
01:03:28,064 --> 01:03:29,480
allura aħna qed tmur biex tagħmel xi ħaġa. "

1236
01:03:29,480 --> 01:03:29,980
OK?

1237
01:03:29,980 --> 01:03:31,370
Allura dan jagħmel sens, id-dritt?

1238
01:03:31,370 --> 01:03:33,540
Għaliex kull karattru
aħna tip, aħna qed tmur

1239
01:03:33,540 --> 01:03:36,550
li jkollhom lift idejna off
ta 'dan, hekk meta ċ-ċavetta tmur up,

1240
01:03:36,550 --> 01:03:40,980
nistgħu nafu li decrement
karattri tagħna li jifdal.

1241
01:03:40,980 --> 01:03:44,440
>> Allura aħna għandna xi wħud fuq ċavetta
up, u bl-istess mod,

1242
01:03:44,440 --> 01:03:47,480
aħna qed tmur biex ngħid,
"OK, meta nagħmlu dan, aħna

1243
01:03:47,480 --> 01:03:55,110
huma se joħolqu xi funzjoni li
huwa ser jieħu e, "f'dan il-każ,

1244
01:03:55,110 --> 01:03:58,800
u dak li rridu nagħmlu huwa
jikkalkulaw in-numru li jifdal.

1245
01:03:58,800 --> 01:04:02,510
OK, so ejja biss tibda
billi toħloq varjabbli.

1246
01:04:02,510 --> 01:04:05,830
Allura aħna għandna xi r varjabbli,
li għaddej biex jirrappreżentaw

1247
01:04:05,830 --> 01:04:07,720
kemm karattri għandna xellug.

1248
01:04:07,720 --> 01:04:08,890
OK?

1249
01:04:08,890 --> 01:04:14,540
Aħna nafu li aħna tibda bil
140, u jekk irridu li taf,

1250
01:04:14,540 --> 01:04:18,360
ejja ngħidu, it-tul ta 'dan il-
string li kien input,

1251
01:04:18,360 --> 01:04:20,860
do you guys jkollu ebda idea
kif nistgħu nagħmlu dan?

1252
01:04:20,860 --> 01:04:23,900
Just bbażata off ta 'l-ovvju
affarijiet, bħal jekk ridna siegħa,

1253
01:04:23,900 --> 01:04:25,870
aħna użati nikseb sigħat.

1254
01:04:25,870 --> 01:04:28,860
Aħna nafu dak l-oġġett tagħna huwa
żona test, iżda inti tista guys

1255
01:04:28,860 --> 01:04:33,050
think ta 'dak li jista' jidħlu wara dan?

1256
01:04:33,050 --> 01:04:35,280
Xi ideat?

1257
01:04:35,280 --> 01:04:41,730
>> Allura xorta dan wieħed ta 'inqas
intuwittivi, imma hija dot tul valur.

1258
01:04:41,730 --> 01:04:44,700
Hekk biss jagħtu me xi
attribut valur li

1259
01:04:44,700 --> 01:04:46,500
effettivament hija l-tul ta 'din is-sekwenza.

1260
01:04:46,500 --> 01:04:50,340
Allura huwa għaddej biex jgħidu, "OK, I infittex
f'dan string kollu fiż-żona ta 'test,

1261
01:04:50,340 --> 01:04:52,730
u jien ser jgħidlek
inti kemm żmien hu. "

1262
01:04:52,730 --> 01:04:55,500
Għaliex jekk aħna niftakru kordi
huma verament ftit arrays,

1263
01:04:55,500 --> 01:04:58,110
hekk nistgħu ħu it-tul ta 'minnhom.

1264
01:04:58,110 --> 01:05:01,860
Allura aħna għandna dak.

1265
01:05:01,860 --> 01:05:04,058
Kessaħ.

1266
01:05:04,058 --> 01:05:09,360
>> Imbagħad dak li rridu nagħmlu huwa li aħna
qatt ma trid tippermetti lill-utent

1267
01:05:09,360 --> 01:05:12,340
għal aktar minn dħul
140 karattri, id-dritt?

1268
01:05:12,340 --> 01:05:15,610
Għaliex jekk aħna ngħidu simili, "oh, inti
biss jkollhom din ħafna li jifdal, "

1269
01:05:15,610 --> 01:05:20,522
u imbagħad ħallihom jagħmlu dan
anyways, aħna kont qed tinsab.

1270
01:05:20,522 --> 01:05:22,230
U dan huwa pass ieħor
ħaġa li JavaScript

1271
01:05:22,230 --> 01:05:24,530
jista 'jkun verament tajba
għal, huwa validazzjoni utent

1272
01:05:24,530 --> 01:05:29,062
u jagħmlu ċert li tiegħek
utent toqgħod tajjeb fi ħdan xi regoli

1273
01:05:29,062 --> 01:05:30,270
li inti stajt pprovduta lilhom.

1274
01:05:30,270 --> 01:05:36,020
Mela jekk inti tixtieq li tagħmel affarijiet simili jagħmlu
żgur xi ħadd input-indirizz email tagħhom,

1275
01:05:36,020 --> 01:05:40,242
jew jagħmlu ċert li meta huma
jidħol żewġ passwords, dawn issodisfaw.

1276
01:05:40,242 --> 01:05:41,200
JavaScript tista 'tagħmel dan.

1277
01:05:41,200 --> 01:05:44,010
Inti se tagħmel xi ħaġa simili, "meta
il-formola tiġi sottomessa, "jew simili,

1278
01:05:44,010 --> 01:05:48,170
"Meta Issottometti Formola buttuna huwa
għafast, iċċekkja kollha dawn l-affarijiet. "

1279
01:05:48,170 --> 01:05:49,670
U nistgħu nagħmlu dan JavaScript.

1280
01:05:49,670 --> 01:05:52,680
Allura li jinsab biss dak
aħna qed tmur biex tagħmel hawn.

1281
01:05:52,680 --> 01:05:57,810
>> Allura dak li jista 'jkun mod biex jiċċekkjaw jekk
li ħadthom marret fuq 140 karattru?

1282
01:05:57,810 --> 01:06:03,310
X'hemm jiġri li
valur tagħna ta 'r jekk jippruvaw?

1283
01:06:03,310 --> 01:06:04,760
Huwa ser tkun negattiva, id-dritt?

1284
01:06:04,760 --> 01:06:07,380
Jew li għaddej biex tkun inqas
minn jew ugwali għal żero.

1285
01:06:07,380 --> 01:06:13,690
Allura aħna tista 'tuża jekk dan huwa
bħad kollox.

1286
01:06:13,690 --> 01:06:14,270
OK?

1287
01:06:14,270 --> 01:06:20,480
U aħna għandna xi żona test dot
valur, u dak li aħna qed tagħmel hawn

1288
01:06:20,480 --> 01:06:29,940
hija aħna qed biss cutting-- x'inhu?

1289
01:06:29,940 --> 01:06:30,900
Jiddispjacini.

1290
01:06:30,900 --> 01:06:32,732
Dan wieħed, aħna biss jixtiequ jirritornaw falza.

1291
01:06:32,732 --> 01:06:34,030
I ltqajna konfuż.

1292
01:06:34,030 --> 01:06:36,560
Kollha frazzled minn affarijiet ma jkunux qed jaħdmu.

1293
01:06:36,560 --> 01:06:40,010
OK, aħna biss jixtiequ
ritorn foloz, u allura aħna

1294
01:06:40,010 --> 01:06:44,160
tixtieq li juru l-
karattri li jifdal, id-dritt?

1295
01:06:44,160 --> 01:06:48,720
Allura ma l-arloġġ, għamilna
xi ħaġa ma HTML ġewwa, id-dritt?

1296
01:06:48,720 --> 01:06:52,070
Fejn ninsabu huwa stabbilit ugwali għal xi
varjabbli, hekk dak li jista nagħmlu hawnhekk?

1297
01:06:52,070 --> 01:06:54,590

1298
01:06:54,590 --> 01:06:57,750
Liema huma aħna jinbidlu l-HTML ġewwa ta '?

1299
01:06:57,750 --> 01:07:02,843

1300
01:07:02,843 --> 01:07:03,780
>> UDJENZA: Jibqgħu?

1301
01:07:03,780 --> 01:07:05,738
>> ALLISON BUCHHOLTZ-UA:
Aħna qed jinbidlu jifdal.

1302
01:07:05,738 --> 01:07:09,217

1303
01:07:09,217 --> 01:07:11,300
Kull dritt, u liema do we
tixtieq li twaqqaf dan ugwali għal?

1304
01:07:11,300 --> 01:07:14,440

1305
01:07:14,440 --> 01:07:18,437
Huwa ser tkun r, għaliex dan
Għandu jkun karattri tagħna li jifdal.

1306
01:07:18,437 --> 01:07:19,600
OK?

1307
01:07:19,600 --> 01:07:26,060
Hekk jien verament nervuża biex tara jekk
dan xogħlijiet issa, imma aħna ser tara.

1308
01:07:26,060 --> 01:07:28,960

1309
01:07:28,960 --> 01:07:29,460
Ħalli dan.

1310
01:07:29,460 --> 01:07:34,690

1311
01:07:34,690 --> 01:07:37,700
C'est verament mgħaġġel.

1312
01:07:37,700 --> 01:07:38,970
[Inaudible] OK.

1313
01:07:38,970 --> 01:07:44,574

1314
01:07:44,574 --> 01:07:45,990
Għal darb'oħra, jien biss ser nuruk.

1315
01:07:45,990 --> 01:07:49,430
Għal kwalunkwe raġuni,
minjiera jiddeċiedi li ma jaħdmux,

1316
01:07:49,430 --> 01:07:53,354
imma dak I ser nuruk hija li dan
is-- oh I kien suppost li tqiegħed dik.

1317
01:07:53,354 --> 01:07:57,470
OK, aħna Avviż l-istess tip ta '
Ħaġa hawn, jkollna l-erja test.

1318
01:07:57,470 --> 01:08:01,070
>> Ukoll, jekk inti avviż Guy, jekk hemm
qatt xi ħaġa li trid tagħmel,

1319
01:08:01,070 --> 01:08:04,080
u ma tafx kif jagħmlu
dan, ikklikkja View Page Sors,

1320
01:08:04,080 --> 01:08:06,632
u dawn qed tmur biex jgħidlek.

1321
01:08:06,632 --> 01:08:07,840
Kultant ser tkun encrypted.

1322
01:08:07,840 --> 01:08:11,147
Għal pset tiegħek, aħna kriptaġġ kollox,
hekk hija biss qisu gibberish.

1323
01:08:11,147 --> 01:08:13,480
Imma jekk hemm qatt verament
jibred websajt li inti tixtieq,

1324
01:08:13,480 --> 01:08:17,729
jekk inti ikklikkja View Page Sors,
li għaddej biex jgħidulek kif għandek tagħmel dan.

1325
01:08:17,729 --> 01:08:20,770
Għalhekk għal darb'oħra, ix-xogħol aktar intelliġenti, mhux aktar diffiċli.

1326
01:08:20,770 --> 01:08:24,250
U kif inti tara hawn, kollha ta '
dawn l-affarijiet huma l-istess.

1327
01:08:24,250 --> 01:08:31,930
dan wieħed hawn biss tieħu xi substring
li, ninsa eżattament dak li dan ma.

1328
01:08:31,930 --> 01:08:36,980
Iżda huwa ovvjament jieħu xi substring
tal-valur minn żero għal għaxra,

1329
01:08:36,980 --> 01:08:41,540
u prospetti foloz liema għandu jieqaf
l-utent minn inputjar aktar,

1330
01:08:41,540 --> 01:08:46,040
u allura ovvjament aġġornamenti
l-HTML ġewwa hemmhekk.

1331
01:08:46,040 --> 01:08:47,410
>> Kessaħ.

1332
01:08:47,410 --> 01:08:53,000
Allura kbar jieħdu aways mil-lum,
esperiment, tħares lejn kodiċi sors

1333
01:08:53,000 --> 01:08:58,359
għaliex dan huwa għaddej biex jgħinek ħafna,
u kulħadd, xi kultant JavaScript

1334
01:08:58,359 --> 01:09:03,200
jista 'jkun diffiċli biex taħdem ma' u ma
dejjem taħdem il-mod inti tistenna għal,

1335
01:09:03,200 --> 01:09:05,700
iżda biss jippruvaw iżommu
minħabba I wegħda li se.

1336
01:09:05,700 --> 01:09:08,376
I wegħda kollha ta 'dawn l-eżempji
kienu qed jaħdmu qabel klassi.

1337
01:09:08,376 --> 01:09:09,750
I ma jifhmux dak li ġara.

1338
01:09:09,750 --> 01:09:13,069
I litteralment ikollhom kollox l-istess.

1339
01:09:13,069 --> 01:09:17,660
>> Ħaġ'oħra li I biss jixtiequ
nuruk guys li jistgħu jkunu super utli

1340
01:09:17,660 --> 01:09:21,630
huwa in-- dak li kien jaħdem qabel?

1341
01:09:21,630 --> 01:09:23,935
Sirna parti xogħol, ma we?

1342
01:09:23,935 --> 01:09:26,569
I think so.

1343
01:09:26,569 --> 01:09:27,069
Iva.

1344
01:09:27,069 --> 01:09:27,630
Għamilna.

1345
01:09:27,630 --> 01:09:28,250
Tal-biża.

1346
01:09:28,250 --> 01:09:31,189
OK, hekk ħaġa waħda li
inti guys għandek tkun taf

1347
01:09:31,189 --> 01:09:33,340
huwa l-console log li I tkellem dwar.

1348
01:09:33,340 --> 01:09:37,040
Allura console dot log tal bonjour.

1349
01:09:37,040 --> 01:09:40,430
Allura dan huwa tip ta 'l-
JavaScript ekwivalenti ta 'printf.

1350
01:09:40,430 --> 01:09:42,810
Mela jekk inti qatt tixtieq li
jispezzjonaw varjabbli tiegħek

1351
01:09:42,810 --> 01:09:49,649
jew tara x'inhu jiġri hemmhekk, liema
inti tista 'tagħmel huwa, jekk aħna jispezzjonaw element,

1352
01:09:49,649 --> 01:09:51,899
huwa dak li inti tixtieq li tmur
għal, u inti tmur console,

1353
01:09:51,899 --> 01:09:53,770
tkun taf tara li dan stampata bonjour.

1354
01:09:53,770 --> 01:09:55,750
>> Allura nistgħu jkollhom dan
print x'ikun ridna.

1355
01:09:55,750 --> 01:10:04,170
Jekk ridna li jistampaw isfond
dot dot stil isfond,

1356
01:10:04,170 --> 01:10:08,454
għandna nkunu kapaċi biex tara d-
RGB triplu li taqa up.

1357
01:10:08,454 --> 01:10:11,140
Jew le.

1358
01:10:11,140 --> 01:10:13,520
I tinsa eżattament kif inti
tipprintja varjabbli bħal dik,

1359
01:10:13,520 --> 01:10:17,249
iżda inti għandek tkun kapaċi li
jistampa affarijiet bħal dik.

1360
01:10:17,249 --> 01:10:19,040
Dak se jkun utli ħafna
għall pset tiegħek meta

1361
01:10:19,040 --> 01:10:23,330
int tipprova li jimmanipulaw
tikkoordina jew whatnot.

1362
01:10:23,330 --> 01:10:25,270
Allura huma wkoll jibdlu din il-biċċa fil-klassi.

1363
01:10:25,270 --> 01:10:30,750
Din hija differenti mill-aħħar snin, hekk
biss ikunu sbieħ li TFS tiegħek, jew il-TFS

1364
01:10:30,750 --> 01:10:36,350
fil-ħinijiet uffiċċju pjuttost, għaliex aħna qed
tip ta 'tagħlim flimkien miegħek guys.

1365
01:10:36,350 --> 01:10:41,230
Iżda l-console log kien super, super
utli għall JavaScript aħħar sena.

1366
01:10:41,230 --> 01:10:42,740
Allura imħabba tiegħu.

1367
01:10:42,740 --> 01:10:43,780
Tgħallem kif jużah.

1368
01:10:43,780 --> 01:10:49,026
Huwa aktar faċli għall-użu minn GDB, b'tali mod li
għandha tkun għallinqas punt plus.

1369
01:10:49,026 --> 01:10:50,650
Imma nirringrazzjak guys qed iħallu miegħi.

1370
01:10:50,650 --> 01:10:53,400
Jien sorry li tiegħi
Eżempji għal xi raġuni

1371
01:10:53,400 --> 01:10:55,410
biss ma riedx
ikkopera miegħi, imma I

1372
01:10:55,410 --> 01:11:01,010
Nittama li dan għen tip ta nikseb inti
ftit aktar fiż-żona ta 'JavaScript.

1373
01:11:01,010 --> 01:11:04,980
U tibgħatli mistoqsijiet kollha tiegħek għall
ġimgħa d-dieħla so I tista 'tiġi msewwija super,

1374
01:11:04,980 --> 01:11:09,420
u jien ser iġibu kandju u anke extra
kandju għaliex dan kien redikoli.

1375
01:11:09,420 --> 01:11:14,000
Imma inti guys huma kbar,
u jkollhom ġimgħa tal-biża.

1376
01:11:14,000 --> 01:11:15,584