JavaScript nye egbegbe dɔwɔɖoɖowo ƒe gbegbɔgblɔ si wozãna na amewo katã. Menye nyatakakadzraɖoƒewo koe eƒe dɔwɔnua zãna o. Wowɔe kple ŋku be woatsɔe awɔ ɖeka kple dɔwɔnu ɖesiaɖe eye ŋutete le esi be wòawɔ ŋɔŋlɔdzesiwo. Wobui be JavaScript ye nye Netscape ƒe nuŋɔŋlɔ ƒe gbegbɔgblɔ. Gbã la, woyɔe be Mocha, eye emegbe woyɔe be LiveScript. Exɔ ŋkɔ si le eŋu fifia le December 1995 me. Le eŋutinunyala siwo tso Netscape ƒe gɔmedzedze me la, ECMA ye ɖo JavaScript ɖe ɖoɖo nu.
Wozãnɛ wu le nyatakakadzraɖoƒewo. JavaScript nye nuŋɔŋlɔ ƒe ɖoɖowɔɖi gbegbɔgblɔ. Dɔwɔwɔa keke ɖe enu, to nu yeyewo dodo ɖe ŋgɔ me, na be nàte ŋu atrɔ nuŋlɔɖiwo me nyawo le fesre ɖeka me (trɔ HTML, CSS), awɔ nu kple ezãlawo, awɔ dɔ tso nyatakakawo ŋu, abu akɔnta ahalé ŋku ɖe wo ŋu. JavaScript si wotsɔ de eme la naa ŋɔŋlɔdzesi siwo wotsɔ de axaawo ƒe HTML code me la wɔa dɔ. Script processing dzɔna le eɖokui si ne woda axaa ɖe asisi ƒe kɔmpiuta dzi. Woɖo gbea ɖe ɖoɖo nu, si wòle be wòaɖee afia be dɔwɔwɔ vovovowo sɔ nyuie ŋutɔ. Gake le nuwɔna me la, womate ŋu awɔ ɖeka le web-browser vovovowo me o, si hea dzimaɖitsitsi geɖe vɛ na ɖoɖowɔlawo.
JavaScript ƒe nɔnɔmewo kple seɖoƒewo
Tso esime wodze JavaScript gɔme zi gbãtɔ la, ewɔ dɔ geɖe ŋutɔ. Fifia àteŋu azãe atsɔ awɔ dɔwɔɖoɖowo, awɔ dɔ le web-browser me kple machine learning (ML) kple AI models. Woɖe mɔ ɖe JavaScript (node.js) ŋu le dɔdzikpɔla ƒe akpa dzi. Gbea ƒe akpa vevi siwo le web-browser la me:
- enaa nète ŋu wɔa dɔ kple CSS kple HTML (nyatakakawo tɔtrɔ, wo tsɔtsɔ kpee, wo tutu);
- naa kadodo kple ezãlawo le axaa dzi (safuiwo ƒoƒo, asiƒoƒo, mouse ƒe dzesi ʋuʋu);
- wozãnɛ tsɔ ɖoa biabiawo ɖe server la, kɔpi/daa faɛlwo ɖe Internet dzi (AJAX JS mɔ̃ɖaŋununya);
- wɔa dɔ kple kukiwo.
Mɔxexeɖedɔléle nu:
- le dɔ wɔm le tab si le ʋuʋu ɖi me, mɔɖeɖe aɖeke meli na tab bubu siwo le ʋuʋu ɖi o;
- ne JS meʋu browser ƒe fesre o la, mate ŋu axee o;
- mɔ aɖeke meli si dzi woato aɣla axaa ƒe nyatakakatsoƒe o;
- mɔɖeɖe aɖeke mele OS la ƒe ɖoɖoa ƒe dɔwɔwɔwo ŋu o.
Wotsɔa mɔ eve doa ka kplii: to kɔda si le axaa dzi dzi kple to gotagome faɛl aɖe dzi. Le go gbãtɔ me la, ele be nàgblɔ <script>//Program body</script>. Kɔda si tso gota faɛl la me la le sedede <script src=”name.js”></script> me
JavaScript ye nye tiatia nyuitɔ kekeake na ƒewuiviwo kple ɖoɖowɔla gɔmedzelawo. Viɖe vevitɔ si le eŋue nye alesi wòbɔe. Wodoa alɔe le browserwo katã me, le dɔwɔɖoɖowo katã dzi, asitelefonwo, ame ŋutɔ ƒe kɔmpiutawo dzi. JavaScript dɔwɔɖoɖowo wɔa dɔ evɔ womedea wo zazãlawo ƒe mɔ̃wo dzi gbã o. Ne didi aɖe li be ame aɖe nate ŋu azã module si wowɔ la, ekema JS nye mɔnu bubu si dze. Le kpɔɖeŋu me, ele be nàdoe kpɔ. Aleke mawɔ ana nye dodokpɔbiabiawo nadze na ame bubuwo? Nusianu le bɔbɔe ŋutɔ. Ne wotia JavaScript be woawɔ kɔdasia, eye wotia nyatakakadzraɖoƒe dzro aɖe be woamae la, kuxia nu ayi le eɖokui si.
Alesi JavaScript xɔ ŋkɔe la tso viɖe gbogbo aɖewo gbɔ:
- Ele vevie na nyatakakadzraɖoƒe ƒe ŋgɔyiyi. Scripts doa alɔ browser xɔŋkɔwo katã, wowɔ ɖeka kple ɖoɖo kple server akpa (backend).
- Nu gbagbewo kple wo nɔƒewo ƒe ɖoɖo si woto vɛ. Egbɔkpɔnu gbogbo aɖewo li siwo wowɔ xoxo le dutoƒo.
- Susuŋudɔwɔwɔ kple eŋudɔwɔwɔ bɔbɔe.
- Zãzã ƒe ɖoɖo si de ŋgɔ.
- Nusɔsrɔ̃ bɔbɔe. Nyagɔmeɖegbalẽa va zu numame na wò kaba.
Gbɔdzɔgbɔdzɔ geɖe hã le gbea ŋu, siwo ne wodi la, woate ŋu aƒo asa na.
- Alesi wòhiã be woawɔ ɖoɖo bubuwo, agbalẽdzraɖoƒewo . Dɔwɔnu siwo sɔ tiatia menye dɔ bɔbɔe o. Woate ŋu ase egɔme nenye be agbalẽdzraɖoƒe si wotia la sɔ na kuxi aɖe koŋ gbɔ kpɔkpɔ ne wosrɔ̃ nu tso eŋu gbã vɔ ko.
- Nusiwo trɔna, nyatakaka ƒomeviwo gbɔ kpɔkpɔ ŋumaɖɔɖotɔe . Typo sue aɖe ate ŋu agblẽ ɖoɖowɔɖi bliboa me. Le kpɔɖeŋu me, var Xexlẽdzesi = 100; Xexlẽdzesi = Xexlẽdzesi + 1; Le ɖoɖowɔɖia ƒe kɔpi wɔwɔ me ko hafi nuŋɔŋlɔa agblɔ be vodada aɖe dzɔ. Kuxi ma tɔgbe ado mo ɖa ne ɖoɖowɔla la tɔtɔ nuŋlɔɖia. Kpɔɖeŋu ɖeka bubu. Ðoɖowɔla la ɖoe be yeaŋlɔ xexlẽdzesi aɖe ɖe tɔtrɔ aɖe si me ka aɖe le xoxo la me. Vodada ƒe gbedasi aɖeke manɔ go sia me o. Gake nusi ado tso eme la masɔ gbɔ kura tso mɔkpɔkpɔ me o. Àte ŋu aƒo asa na kuxi siwo míeyɔ ɖe etame to kɔdawo ɖɔlilawo zazã me. Tiatia si ame geɖe lɔ̃a zazã wue nye Visual Studio Code.
- Mesɔ na network dɔwɔɖoɖowo (kɔmpiutadziɖoɖo siwo kpɔa dɔwɔƒewo ƒe kɔmpiuta networkwo ƒe dɔwɔwɔ nyuie dzi) toto vɛ o.
- JavaScript nye nuŋɔŋlɔ ƒe gbegbɔgblɔ si wozãna femaxee . Eyata masesẽ na ɖoɖowɔla bibiwo be woade kɔpi vɔ̃ɖiwo eme o. Egbea la, amedzidzedze ƒomevi siwo bɔ wu dometɔ ɖekae nye cross-site scripting to JavaScript zazã me. Le kpɔɖeŋu me, XSS amedzidzedzewo nye amedzidzedze ƒomevi aɖe si dea nyatakaka gbegblẽwo Internet-ɖoɖowo me, eɖɔlia kadodo ɣaɣlawo / siwo wokpɔna, si zinɛ ɖe wo dzi be woatsɔ nyatakaka siwo trɔ la ana, eye woɖea woawo ŋutɔ ƒe boblododowo fiana le nyatakakadzraɖoƒe si gblẽ.
https://articles.opexflow.com/programming/kak-stat-programmistom-s-nulya.htm Be nàna dɔ sesẽwo nanɔ bɔbɔe eye nàwɔ dɔ siwo bɔ la, wokafui be nàzã JavaScript agbalẽdzraɖoƒewo, siwo nye mɔnu kple dɔwɔwɔ siwo wowɔ xoxo ƒe ƒuƒoƒo . Agbalẽdzraɖoƒe geɖewo li na JavaScript wowɔ. Wotrɔ asi le wo dometɔ aɖewo ŋu be woatsɔ akpɔ kuxi aɖewo koŋ gbɔ, abe agbalẽviwo ŋuti dɔwɔwɔ alo akɔntabubu ƒe dɔwɔwɔwo ƒe akɔntabubu ene. Widget siwo bɔ wu hena Internet dzi dɔwɔnu blibowo wɔwɔ to Ajax mɔ̃ɖaŋununya zazã me la le bubuwo me. Agbalẽdzraɖoƒe siwo wowɔ xoxo zãla bibiwo ate ŋu akpɔ ɣeyiɣi geɖe dzi. Eye mɔnukpɔkpɔ asu gɔmedzelawo si be woawɔ dɔ siwo womate ŋu aŋlɔ le wo ɖokui si haɖe o.
Gbea ƒe didi
Dukɔwo dome dzidzedzekpɔkpɔwo ɖo kpe alesi JavaScript xɔ ŋkɔ le ewɔlawo dome dzi. Le PYPL ƒe nya nu la, enye ame etɔ̃ siwo le ŋgɔ wu la dometɔ ɖeka.
Stack Overflow Habɔbɔa le ŋku lém ɖe nyabiase siwo ku ɖe JS ŋu ƒe xexlẽme ŋu le dɔnyala ƒe nyamedzroƒewo. Le woƒe numekukua me tsonu nu la, wonya JavaScript be eyae nye kplɔla si ŋu womeʋlia nya le o.
W3Techs xlẽa dɔ siwo wowɔ to mɔ̃ɖaŋununya aɖe koŋ zazã me ƒe xexlẽme. Hoʋlila aɖeke mele JS si o. Le akpa si nye asisiwo ƒe ŋgɔdonyawo me la, esiae nye dɔwɔnu si wobia wu.
Nu geɖe wu siwo wotu ɖe JavaScript dzi la kpɔa gome le Frontend nutoa me tẽ. Dɔwɔlawo zãa agbalẽdzraɖoƒe kple ɖoɖowɔɖi siwo ade 30 vevie. Egbɔkpɔnu siwo wowɔ xoxo kple nɔnɔmetata siwo wowɔ na dɔ siwo wowɔna ɖaa (kple tɔtrɔ aɖewo) ɖea ɣeyiɣi geɖe dzi kpɔtɔna, wowɔa dɔa bɔbɔe, eye woɖea dɔwo ƒe gazazã dzi kpɔtɔna. Nusiwo bɔ wu: Dzogoe, Aurelia, Backbone.js, Ember.js, jQuery, Meteor.js, Node.js, Vue.js.
Wozã JS geɖe le asitelefon dzi dɔwɔɖoɖowo wɔwɔ, megbenyawo wɔwɔ, kple kɔmpiuta dzi dɔwɔɖoɖowo wɔwɔ me. JS gbea didi ƒe dzidziɖedzi wɔnukua hã nɔa bɔbɔe to nɔnɔme si nye be woadzi nyatakakadzraɖoƒewo ƒe kadodo ɖe edzi ta.
Nu vevi bubue nye JS zazã hena mɔ̃wo sɔsrɔ̃ ( ML) kple nunya wɔwɔe (AI). Mɔ̃ɖaŋununya sɔsrɔ̃ fia ŋutete si le ɖoɖowo ŋu be woawɔ nu aɖewo mɔfiame tɔxɛ aɖeke manɔmee. Be nàwɔ dɔ mawo tɔgbe la, àte ŋu azã ɖoɖo aɖe abe TensorFlow.js ene. Egbea àte ŋu azã:
- nusɔsrɔ̃ tso ame bubuwo gbɔ;
- kpɔɖeŋu si wona hehee va yi;
- wò ŋutɔ wò kpɔɖeŋu toto vɛ.
Bu kpɔɖeŋu si wona hehee va yi zazã ŋu abe kpɔɖeŋu ene. Tsɔe be ehiã be míawɔ nyatakakadzraɖoƒe aɖe si adzro nɔnɔmetatawo me ahatia esiwo ɖe avu aɖe fia. MobileNet nye nɔnɔmetatawo ƒe hatsotsowo me toto si ame geɖe lɔ̃a zazã. Edze le kpɔɖeŋu ƒe nɔnɔme si wona hehee me tso Tensorflow.js. Kɔda si gbɔna la adze le nyatakakadzraɖoƒea:
Tsɔ MobileNet kple Tensorflow.js kpe ɖe HTML kɔda la ƒe ta ŋu.
Ŋutilã la gblɔa nutata si wozã hena numekukua ƒe akpa aɖe.
Wotsɔa JavaScript code kpena ɖe script si atsɔ MobileNet ƒe kpɔɖeŋu si wona hehee va yi la ŋu be wòaɖe nɔnɔmetata siwo wogblɔ le nɔnɔmetata me la me.
Nusi ado tso eme anye ƒuƒoƒo si me nyagblɔɖi etɔ̃ le. Woaŋlɔ nusi ate ŋu ado tso eme wu la gbã. Aleae nàte ŋu azã kpɔɖeŋu si wona hehee xoxo kple Tensorflow.js. Ele be nàse egɔme be ate ŋu axɔ ɣeyiɣi hafi wòadze le web-browser la me. Ɣeaɖewoɣi la, eɖoa sɛkɛnd 10 gbɔ.
JavaScript sɔsrɔ̃ ƒe mɔnukpɔkpɔ le ƒe 2022 me – ŋgɔyiyi ƒe nukpɔsusuwo
JavaScript nye gɔmeɖoanyi si dzi wotu ŋgɔgbe-nutome nyatakakadzraɖoƒewo katã ɖo. Àte ŋu atsɔe awɔ nuwɔna vovovowo ahaxe mɔ ɖe nudzɔdzɔwo nu. Le kpɔɖeŋu me, ezãla aɖe zia nya aɖe si le nyatakakadzraɖoƒe aɖe dzi. Sedede si nye be nàzi edzi la wɔ dɔ. Eyome woyɔa dɔwɔwɔ aɖe koŋ be: asitɔtrɔ le nusi le dɔ wɔm ƒe amadede ŋu, dɔwɔwɔ le modal fesrea ŋu. Wozãa JavaScript tsɔ naa nyatakakadzraɖoƒea ƒe axawo wɔa dɔ nyuie wu, be wòana amedzrowo nate ŋu awɔ nu kple nu vovovo siwo tua ame ɖo. Ne èzã JavaScript la, àte ŋu atsɔ nu gbogbo aɖewo siwo ŋu viɖe le akpe ɖe nyatakakadzraɖoƒe aɖe ŋu. HTML, CSS kple JS ɖeɖeko zazã me la, dɔwɔlawo ateŋu awɔ dɔwɔɖoɖo vovovo siwo wɔa dɔ. Le kpɔɖeŋu me, anyigbatata si woawɔ yeyee le ɣeyiɣi ŋutɔŋutɔ me, si nye Internet dzi fefewo. Kpɔ nyatakakadzraɖoƒe xɔŋkɔ si nye Pinterest. Le afisia la, wozãa JavaScript bliboe tsɔ wɔa xɔlɔ̃wɔwɔ ƒe mɔnu aɖe. Tsɔ kpe ɖe eŋu la, JavaScript ye nye dɔwɔɖoɖowo ƒe gbegbɔgblɔ si ame geɖe lɔ̃a zazã wu le xexeame. Eye eɖanye dɔ ka kee wole didim o, ele be woasrɔ̃ gbe sia si ŋu viɖe le ŋutɔ. Menye web ɖoɖowɔla yeyewo koe ate ŋu abi ɖe gbea me o, ke sukuviwo hã ate ŋu abi ɖe eme hena ŋgɔyiyi bliboa. Esia nana wònɔa bɔbɔe to alesi woate ŋu ase kɔdasia gɔme nyuie, alesi gbea me susu le, kple alesi nyagɔmeɖegbalẽa le bɔbɔe me. JavaScript nye gbegbɔgblɔ si me nɔnɔme siawo le: Esia nana wònɔa bɔbɔe to alesi woate ŋu ase kɔdasia gɔme nyuie, alesi gbea me susu le, kple alesi nyagɔmeɖegbalẽa le bɔbɔe me. JavaScript nye gbegbɔgblɔ si me nɔnɔme siawo le: Esia nana wònɔa bɔbɔe to alesi woate ŋu ase kɔdasia gɔme nyuie, alesi gbea me susu le, kple alesi nyagɔmeɖegbalẽa le bɔbɔe me. JavaScript nye gbegbɔgblɔ si me nɔnɔme siawo le:
- Wobua nu suesuesuewo ŋu. Vovototo gã aɖe le Func() kple func() dɔwɔwɔwo dome.
- Dɔwɔwɔ kple nusiwo wotu ɖe eme ƒe anyinɔnɔ.
- Alesi wòhiã be woatsɔ semicolon aɖo dɔwɔwɔwo megbe.
- Mesea veve ɖe teƒewo nu o. Àte ŋu azã indent xexlẽme vovovo atsɔ aɖo code la ɖe ɖoɖo nu.
JavaScript – wu JS nusɔsrɔ̃ nu na gɔmedzelawo, video nufiame na nusɔsrɔ̃ tso gɔmedzedzea me kple na dɔwɔla siwo si nuteƒekpɔkpɔ geɖe wu le: https://youtu.be/CxgOKJh4zWE
JavaScript nye ŋɔŋlɔdzesiwo ƒe gbegbɔgblɔ. Script nye ɖoɖowɔɖi ƒe kɔpi si mehiã be woawɔ dɔ tso eŋu do ŋgɔ hafi adze egɔme o. Browser la ƒe mɔ̃a wɔa dɔ tso kɔdasia ŋu le axaa dada me.
Mɔfiame vevi aɖewo li siwo ate ŋu ana JavaScript gbea sɔsrɔ̃ ƒe ɖoɖoa nanɔ bɔbɔe ŋutɔ.
- Gbã la, ele be nànya HTML kple CSS nyuie. Mele be nàdze nyatakakadzraɖoƒewo, dɔwɔɖoɖowo, agbalẽviwo kple nu bubuwo wɔwɔ gɔme na Internet ne mènya nu veviawo o.
- Srɔ̃ agbalẽ yeyewo. Nyatakakamɔnu le ŋgɔ yim, eyata mègaŋe aɖaba aƒu nyatakaka yeyewo dzi o.
- Dze agbagba nàŋlɔ ɖoɖowɔɖia ƒe akpawo katã na wò ŋutɔ. Ne eva hiã be nàdo ame bubu ƒe kɔpi la, ke srɔ̃ nu tso fli ɖesiaɖe ŋu nyuie.
- Zã vodadawo ɖeɖeɖa. Aɖaŋu vevitɔ kekeake si le ɖoɖowɔla bibi ɖesiaɖe sie nye be wòake ɖe vodadawo kple gbɔdzɔgbɔdzɔwo ŋu kaba.
- Ŋlɔ kɔda dzeaniwo. Mègaŋe aɖaba ƒu ɖoɖowɔwɔ ƒe dzidzenuwo dzi o. Nyateƒee, dometsotsowo alo nya siwo le eme ƒe xexlẽme makpɔ ŋusẽ ɖe nuŋɔŋlɔa ƒe nyonyome dzi o, gake gɔmesese ava nɔ eŋu nyuie wu eye wòaxlẽe. Code gbegblẽ ƒe akpa aɖee nye esi.
- Dze agbagba nàƒo nu tso nuwɔna veviwo ŋu.
JavaScript nye gbegbɔgblɔ si wova zãna le nyatakakadzraɖoƒe ƒe ɖoɖowɔɖiwo ƒe nɔnɔme me. Exɔ gbegbɔgblɔ siwo wɔa dɔ kple esiwo ku ɖe nusiwo ŋu woƒo nu tsoe ƒe ŋutetewo. Gake mègaŋlɔ be o be gbegbɔgblɔ nye dɔwɔnu si wɔa dɔ, eye nu vevitɔ kekeake le kɔpi ŋɔŋlɔ mee nye tamebubu.
Nyatakaka siwo ŋu viɖe le na ŋgɔgbe-nuwuwu dɔwɔlawo ƒe dɔnyala bibiwo
React nye JavaScript ƒe agbalẽdzraɖoƒe. Nyitsɔ laa la, eva zu dzidzenu na ŋgɔgbe-nuwuwu ƒe ŋgɔyiyi. Esia nye nya nyui na cross-platform developers. Viɖe siwo gbɔna la le React Native ŋu:
- Gɔmeɖeɖe nyui kple aɖaŋu si gbugbɔa akpawo ta ne ehiã ko (ne nɔnɔme trɔ).
- Xexemenunya si me kɔ eye wòle bɔbɔe ŋutɔ hena gbeƒãɖeɖe dukɔwo, nukpɔsusuwo. Kɔdasia va zua nusi woate ŋu axlẽ, dzeani eye wòanɔ bɔbɔe be woaɖe vodadawo ɖa.
Le nya bɔbɔewo me la, React xea vovototo si le JS kple HTML dome la nu. React JS fundamental course from A to Z: https://youtu.be/GNrdg3PzpJQ Ame ʋɛ aɖewo koe ŋlɔa CSS dzadzɛ le ŋkeke siawo me. Eva zu nusi hiã na ŋgɔgbe-nuƒola bibiwo be woasrɔ̃ gbegbɔgblɔwo abe Less alo Sass ene. Kafukafu bubue nye be nàdzro mɔ siwo li siwo dzi nàto atu axa siwo aɖo nya ŋu la me. Esia tso mɔ̃ vovovowo (tablɛtwo, asitelefonwo, kɔmpiutawo, kple bubuawo) ƒe nɔnɔmewo ƒe agbɔsɔsɔ gbɔ. JS kple CSS agbalẽdzraɖoƒe geɖewo li siwo wɔa dɔ sia ƒomevi bɔbɔe. Wo dometɔ akpa gãtɔ nɔ te ɖe Google ƒe Mɔfiame siwo ku ɖe Material Design ŋu dzi. Agbalẽdzraɖoƒe kple nyati siwo do ƒome kplii li siwo ŋu wòle be nàlé ŋku ɖo:
- na JSON Web Token ƒe mɔɖeɖe;
- na modular Webpack xɔtutu;
- na nyatakakawo ƒe kpɔɖeŋuwo xɔɣi kple dɔwɔwɔ kple Redux, Relay, Flux tɔsisiwo.
Agbalẽdzraɖoƒe gbogbo aɖewo hã li hena dɔwɔwɔ ƒe seƒe nyuitɔ, vodadawo ɖeɖeɖa, kple dɔ siwo wowɔ la dzi kpɔkpɔ. Egbea la, be ame nazu ŋgɔgbe-nuƒola si xɔ ŋkɔ eye wòwɔa dɔ nyuie la, mele be wòasrɔ̃ nu tso gɔmedzenufiafiawo ŋu ko o, ke boŋ wòate ŋu atia / awɔ dɔ tso eŋutinunyala bubuwo ƒe dzidzedzekpɔkpɔwo ŋu, siwo wowɔ le agbalẽdzraɖoƒewo / ɖoɖowo ƒe nɔnɔme me. To woƒe kpekpeɖeŋu me la, dɔa ayi edzi kabakaba wu sã.
J’aiemerais une formation complète avec vous su JavaScript à partir d’un cas concrêt
Merci