JavaScript ni ururimi rugezweho-rugamije porogaramu. Porogaramu yayo ntabwo igarukira gusa kurubuga. Byaremwe nijisho ryo kwinjiza mubisabwa byose hamwe nubushobozi bwo gukora inyandiko. JavaScript yagombaga kuba ururimi rwimyandikire ya Netscape. Ubwa mbere yitwaga Mocha, hanyuma LiveScript. Yakiriye izina ryayo ubu mu Kuboza 1995. Ku bushake bwinzobere zo muri Netscape JavaScript zashyizwe ahagaragara na ECMA. [ibisobanuro id = “umugereka_7684” align = “aligncenter” ubugari = “760”]
Brendan Icke, se wa JavaScript [/ caption] Bikunze gukoreshwa mubushakashatsi bwurubuga. JavaScript ni ururimi rwimyandikire. Kwagura imikorere, mugutangiza ibintu bishya, bigufasha guhindura ibiri mubyangombwa mumadirishya imwe (hindura HTML, CSS), gukorana nabakoresha, gutunganya, kubara no kugenzura amakuru. JavaScript yashyizwemo ikora inyandiko zinjijwe muri kode ya HTML yimpapuro. Gutunganya inyandiko bibaho mu buryo bwikora iyo page yuzuye kuri mudasobwa yabakiriya. Ururimi rusanzwe, rugomba kwerekana ubwuzuzanye buhebuje hagati yimikorere itandukanye. Ariko mubikorwa, guhuza ntabwo bigerwaho muri mushakisha zitandukanye, bizana impungenge nyinshi kubashinzwe porogaramu.
Ibiranga imipaka ya JavaScript
Kuva ryashyirwa mubikorwa bwa mbere, JavaScript igeze kure. Noneho urashobora kuyikoresha mugukora progaramu, gukora muri mushakisha hamwe no kwiga imashini (ML) na moderi ya AI. Seriveri kuruhande rwa JavaScript (node.js) biremewe. Ibintu nyamukuru biranga ururimi muri mushakisha:
- igufasha gukorana na CSS na HTML (guhindura, kongeraho, gusiba amakuru);
- itanga imikoranire nabakoresha kurupapuro (urufunguzo, gukanda, kwimura imbeba indanga);
- ikoreshwa mu kohereza ibyifuzo kuri seriveri, gukuramo / kohereza dosiye (tekinoroji ya AJAX JS);
- ikorana na kuki.
Ibibujijwe:
- ikora muri tab ifunguye, nta kugera kubindi bifungura;
- niba JS idafunguye idirishya rya mushakisha, ntabwo izashobora kuyifunga;
- nta buryo bwo guhisha code yinkomoko yurupapuro;
- nta kugera kubikorwa bya sisitemu ya OS.
Ihujwe muburyo bubiri: binyuze kode kurupapuro no kunyuza dosiye yo hanze. Mugihe cyambere, ugomba kwerekana <script> // Urwego rwa porogaramu </script>. Kode iva muri dosiye yo hanze irimo itegeko <script src = “izina.js”> </script>
JavaScript nuguhitamo kwiza kubangavu nabatangira programmes. Inyungu nyamukuru yacyo ni ubwamamare bwayo. Gushyigikirwa muri mushakisha zose, kuri sisitemu zose zikora, ibikoresho bigendanwa, mudasobwa bwite. Porogaramu ya JavaScript ikora itabanje gushyirwaho kubikoresho byabakoresha. Niba hari icyifuzo ko umuntu wese ashobora gukoresha module yaremye, noneho JS nubundi buryo bukwiye. Kurugero, ugomba kwipimisha. Nigute nshobora gutuma ibibazo byanjye byikizamini bigaragarira abandi bantu? Ibintu byose biroroshye cyane. Niba JavaScript yahisemo gukora code, nurubuga rusanzwe rwatoranijwe kugirango rukwirakwizwe, ikibazo kizashira ubwacyo.
Ibyamamare bya JavaScript biterwa numubare munini wibyiza:
- Ibyingenzi mugutezimbere urubuga. Inyandiko zishyigikiwe na mushakisha zose zizwi, zahujwe nimiterere na seriveri kuruhande (inyuma).
- Iterambere ryibidukikije. Hano hari umubare munini wibisubizo byateguwe murwego rusange.
- Gushyira mu gaciro no koroshya imikoreshereze.
- Urwego rwo hejuru rwo gukoresha.
- Kuborohereza kwiga. Umenyereye syntax byihuse.
Ururimi narwo rufite umubare utari muto, iyo ubishaka, ushobora kuzenguruka.
- Gukenera izindi nzego, amasomero . Guhitamo ibikoresho byiza ntabwo ari ibintu byoroshye. Birashoboka kumva niba isomero ryatoranijwe rikwiriye gukemura ikibazo runaka nyuma yo kubyiga mbere.
- Kutitaho ibintu bihinduka, ubwoko bwamakuru . Ikosa rito rishobora guhagarika gahunda yose. Kurugero, var Umubare = 100; Umubare = Numbe + 1; Inyandiko izerekana ko hari ikosa ryonyine mugihe cyo guteza imbere kode ya porogaramu. Ikibazo gisa nacyo kizavuka niba programmer yitiranyije igitabo. Urundi rugero. Porogaramu yahisemo kwandika umubare kuri variable isanzwe irimo umugozi. Nta butumwa bwibeshya buzaba muri uru rubanza. Ariko ibisubizo bizaba kure y’ibiteganijwe. Urashobora kwirinda ibibazo byavuzwe haruguru ukoresheje abanditsi ba code. Amahitamo azwi cyane ni Visual Studio Code.
- Ntibikwiye gutezimbere imiyoboro ya porogaramu (software ishinzwe imikorere myiza yimiyoboro ya mudasobwa).
- JavaScript ni ururimi rwimyandikire yubuntu . Kubwibyo, ntibizagora abaporogaramu babimenyereye gushyiramo kode mbi. Uyu munsi, bumwe mu bwoko bwibitero bikunze kugaragara ni inyandiko zambukiranya urubuga ukoresheje JavaScript. Kurugero, ibitero bya XSS nubwoko bwibitero byinjiza kode mbi muri sisitemu ya interineti, bigasimbuza imiyoboro ihishe / igaragara, ibahatira gutanga amakuru yahinduwe, kandi ikerekana amatangazo yabo kurubuga rwangiritse.
https://articles.opexflow.com/programming/kak-stat-programmistom-s-nulya. . Hano hari amasomero menshi ya JavaScript yaremye. Bimwe muribi byashizweho kugirango bikemure ibibazo byihariye, nkuburyo bwo gutunganya cyangwa kubara imikorere yimibare. Abandi barimo widgets zisanzwe zo gukora porogaramu zuzuye za interineti ukoresheje tekinoroji ya Ajax. Abashinzwe ubunararibonye bakoresheje amasomero yiteguye arashobora kubika umwanya munini. Kandi abatangiye bazagira amahirwe yo gushyira mubikorwa imishinga batarashobora kwandika bonyine.
Gusaba ururimi
Icyamamare cya JavaScript mubateza imbere cyemezwa nu rutonde mpuzamahanga. Nk’uko PYPL ibivuga, ni umwe muri batatu ba mbere.
Ishyirahamwe rya Stack Overflow ririmo kureba umubare wibibazo bijyanye na JS mumahuriro yabigize umwuga. Ukurikije ibisubizo by’isesengura ryabo, JavaScript izwi nk’umuyobozi utavuguruzwa.
W3Techs ibara umubare wimishinga yashyizwe mubikorwa ukoresheje ikoranabuhanga runaka. JS nta banywanyi bafite. Mugice cyabakiriya interineti, iki nigikoresho gisabwa cyane.
Umubare munini witerambere ushingiye kuri JavaScript ugira uruhare rutaziguye mukarere ka Imbere. Abashoramari bakoresha cyane amasomero agera kuri 30. Ibisubizo byateguwe hamwe nicyitegererezo kubikorwa bisanzwe (hamwe nuburyo butandukanye) bizigama umwanya munini, koroshya inzira, no kugabanya ikiguzi cyimishinga. Bikunze kugaragara: Angular, Aurelia, Umugongo.js, Ember.js, jQuery, Meteor.js, Node.js, Vue.js.
JS yakoreshejwe cyane mugushinga porogaramu zigendanwa, iterambere ryinyuma, hamwe na progaramu ya desktop. Iterambere ridasanzwe mu gukenera ururimi rwa JS naryo ryoroherezwa no gushaka kongera imikoranire yimbuga. [ibisobanuro id = “umugereka_7668” align = “aligncenter” ubugari = “610”]
Kwiga imvugo ya JavaScript igufasha gukemura imirimo ikurikira [/ caption]
JavaScript nibintu byingenzi bikoreshwa
Mbere yo kwiga syntax y’ururimi, ugomba kumva intego nyamukuru. Kenshi na kenshi, JS ikoreshwa mugihe bibaye ngombwa gukora porogaramu ishingiye kuri mushakisha, kugirango itange ibikoresho bya interineti “mobile”.
- Impapuro zidasanzwe kurubuga . Ukoresheje JavaScript, urashobora gukora ibikoresho, ingaruka zitandukanye za animasiyo. Kode yashyizwe mu rupapuro. Inyandiko ikora mu buryo butaziguye muri mushakisha y’abakoresha. JS, CSS, HTML – urwego ruhagije rwubuhanga kubigezweho bigezweho.
- Imikino, porogaramu y’urubuga . Kurugero, umukiriya wa Gmail, Ikarita ya Google ikorwa na JS. Kurema kugenda, urashobora gukoresha HTML5, JS hamwe nibitabo byateguwe.
- Kwagura Mucukumbuzi . Urashobora kwandika ibikorwa byawe bwite cyangwa porogaramu izakomeza gukurikirana igihe umara ukora ibikorwa runaka.
- Urubuga Seriveri . Mubidukikije byinyuma, JS irushanwa na Python, PHP, nizindi ndimi. Inyungu nyamukuru nubushobozi bwo guteza imbere abakiriya nibice bya seriveri mururimi rumwe. Kurema JS inyuma, abitezimbere bakoresha moteri ya Node.js.
- Ibiro (porogaramu ya desktop) .
- Porogaramu zigendanwa . Ntabwo aribwo buryo bukoreshwa cyane bwa JavaScript. Ariko ifite aho igomba kuba, niba gusa kubera ko JS iguha uburenganzira bwo gukora porogaramu zinyuranye. Kugirango ukore ibi, urashobora gukoresha Ionic, Reaction Kavukire, PhoneGap.
.
_ ML) n’ubwenge bw’ubukorikori (AI). Kwiga imashini bivuga ubushobozi bwa sisitemu yo gukora ibikorwa runaka nta mabwiriza yihariye. Gushyira mubikorwa imirimo nkiyi, urashobora gukoresha urwego nka TensorFlow.js. Uyu munsi urashobora gukoresha:
- kwimura imyigire;
- icyitegererezo cyahuguwe mbere;
- guteza imbere icyitegererezo cyawe.
Tekereza nk’urugero, ikoreshwa rya moderi yatojwe mbere. Dufate ko dukeneye gukora urubuga ruzasesengura amashusho hanyuma tugahitamo izerekana injangwe. MobileNet ni amashusho azwi cyane. Iraboneka muburyo bw’icyitegererezo cyahuguwe kuva Tensorflow.js. Kode ikurikira izagaragara kurubuga:
Ongera MobileNet na Tensorflow.js kumutwe wa code ya HTML.
Umubiri ugaragaza ikintu cyo gushushanya gikoreshwa mu gusesengura.
Kode ya JavaScript yongewe kumyandikire izapakurura moderi ya MobileNet yari yaratojwe kugirango isesengure amashusho yerekanwe mumashusho.
Ibisohoka bizaba umurongo hamwe nubuhanuzi butatu. Ibisubizo bishoboka cyane bizashyirwa kurutonde mbere. Nuburyo ushobora gukoresha moderi yamaze gutozwa hamwe na Tensorflow.js. Ugomba kumva ko bishobora gufata igihe kugirango yikore muri mushakisha. Rimwe na rimwe igera ku masegonda 10.
Ibishoboka byo kwiga JavaScript muri 2022 – icyerekezo cy’iterambere
JavaScript nurufatiro rushingiyeho imbere-amaherezo yiterambere ryurubuga. Hamwe na hamwe, urashobora gukora ibikorwa bitandukanye no guhagarika ibyabaye. Kurugero, umukoresha akanda kurutonde rwibintu kurubuga. Kanda itegeko ryakoze. Ibikurikira, imikorere yihariye yitwa: guhindura ibara ryibintu bikora, gukora idirishya ryuburyo. JavaScript ikoreshwa kugirango page yurubuga irusheho gukorana, kugirango abashyitsi basabane nibintu bitandukanye byubaka. Hamwe na JavaScript, urashobora kongeramo umubare munini wibintu byingirakamaro kurupapuro rwurubuga. Ukoresheje HTML gusa, CSS na JS, abitezimbere barashobora gukora progaramu zitandukanye zikorwa. Kurugero, ikarita izavugururwa mugihe nyacyo, imikino yo kumurongo. Reba kurubuga ruzwi Kurubuga. Hano, JavaScript ikoreshwa muburyo bwuzuye kugirango habeho inshuti yumukoresha. Mubyongeyeho, JavaScript ni ururimi ruzwi cyane rwo gutangiza porogaramu ku isi. Kandi utitaye kubyo wifuza gukora, uru rurimi rwingirakamaro rugomba kwigwa. Ururimi ntirushobora gutozwa gusa nabashinzwe porogaramu ya novice gusa, ahubwo nabanyeshuri biga kugirango iterambere rusange. Ibi byoroherezwa no kumva neza kode, gushyira mu gaciro kwururimi, no koroshya imvugo. JavaScript ni ururimi rufite ibintu bikurikira: Ibi byoroherezwa no kumva neza kode, gushyira mu gaciro kwururimi, no koroshya imvugo. JavaScript ni ururimi rufite ibintu bikurikira: Ibi byoroherezwa no kumva neza kode, gushyira mu gaciro kwururimi, no koroshya imvugo. JavaScript ni ururimi rufite ibintu bikurikira:
- Urubanza rworoshye. Hariho itandukaniro rinini hagati yimikorere () n’imikorere ().
- Kubaho mubikorwa byubatswe.
- Gukenera semicolon nyuma yabakora.
- Ntabwo yunvikana kumwanya. Urashobora gukoresha umubare utandukanye wibimenyetso kugirango uhindure kode.
JavaScript – kuzuza amasomo ya JS kubatangiye, amashusho ya videwo yo kwigira kubitangira no kubateza imbere babimenyereye: https://youtu.be/CxgOKJh4zWE
JavaScript ni ururimi rwanditse. Inyandiko ni kode ya porogaramu idakeneye kubanza gutunganywa mbere yo gutangizwa. Kode itunganywa na moteri ya mushakisha mugihe cyo gupakira page.
Hariho umurongo ngenderwaho wibanze ushobora koroshya cyane inzira yo kwiga ururimi rwa JavaScript.
- Mbere ya byose, ugomba kumenyera HTML na CSS. Ntugomba gutangira gukora imbuga, porogaramu, imiterere nibindi bintu kuri interineti utazi ibyibanze.
- Wige ibitabo bishya. Ikoranabuhanga mu makuru riratera imbere, ntukirengagize ibishya.
- Gerageza kwandika ibice byose bya gahunda wenyine. Niba ugomba kuguza kode yundi, wige witonze buri murongo.
- Koresha gukemura. Ubuhanga bwingenzi bwa porogaramu iyo ari yo yose inararibonye ni ugushaka vuba amakosa namakosa.
- Andika kode nziza. Ntukirengagize ibipimo ngenderwaho. Birumvikana ko umubare wibibanza cyangwa ibimenyetso bitazagira ingaruka kumiterere yinyandiko, ariko bizarushaho kumvikana no gusomwa. Hano hari agace kode mbi.
- Gerageza gutanga ibisobanuro kubikorwa byingenzi.
JavaScript ni ururimi rumaze gukoreshwa henshi kurubuga rwa porogaramu. Yakoresheje ubushobozi bwindimi zikora kandi zishingiye ku kintu. Ariko ntiwibagirwe ko ururimi ari igikoresho cyabateza imbere, kandi ikintu cyingenzi mukwandika code kiratekerezwa.
Amakuru yingirakamaro kubanyamwuga imbere-amaherezo yabateza imbere
Igisubizo ni isomero rya JavaScript. Vuba aha, byahindutse igipimo cyiterambere-imbere. Ninkuru nziza kubateza imbere urubuga. Reaction Kavukire ifite inyungu zikurikira:
- Gukora neza kandi byubwenge byerekana gusa ibice mugihe bibaye ngombwa (niba leta ihinduka).
- Filozofiya yimbitse kandi yoroshye cyane yo gutangaza leta, ibitekerezo. Kode iba isomeka, nziza kandi yoroshye gukemura.
Mumagambo yoroshye, Reaction ikuraho icyuho kiri hagati ya JS na HTML. Kora amasomo y’ibanze ya JS kuva A kugeza kuri Z: https://youtu.be/GNrdg3PzpJQ Abantu bake bandika CSS nziza muriyi minsi. Byabaye nkenerwa kubanyamwuga bambere-bambere batezimbere kwiga indimi nka Gito cyangwa Sass. Ikindi cyifuzo ni ugushakisha inzira zihari zo kubaka paji zishubije. Ibi biterwa numubare munini wibintu byibikoresho bitandukanye (tableti, terefone zigendanwa, PC, nibindi). Hano hari amasomero menshi ya JS na CSS aboneka byoroshye gukora ibintu nkibi. Benshi muribo bashingiye kumurongo ngenderwaho wa Google. Hano hari amasomero ajyanye ningingo ugomba kwitondera:
- kuri JSON Urubuga rwa Token uruhushya;
- kuri modular ya Webpack yubaka;
- kubijyanye no gutoranya amakuru no gukorana na Redux, Relay, Flux imigezi.
Umubare munini w’amasomero uraboneka kandi mugutezimbere urwego rwimikorere, gukemura, no gucunga imishinga yashizweho. Uyu munsi, kugirango ube icyamamare kandi cyiza cyimbere-cyambere cyiterambere, umuntu ntagomba kwiga ibyingenzi gusa, ahubwo ashobora no guhitamo / gushyira mubikorwa ibyagezweho nabandi bahanga, byateguwe muburyo bw’amasomero / urwego. Nubufasha bwabo, akazi kazagenda vuba cyane.
J’aiemerais une formation complète avec vous su JavaScript à partir d’un cas concrêt
Merci