Viɖe siwo le JavaScript (JS) sɔsrɔ̃ me le ƒe 2022 me, amewo ƒe lɔlɔ̃ kple mɔnukpɔkpɔwo, nukatae wòle be nàsrɔ̃ JS? JavaScript (JS) nye ɖoɖowɔɖi ƒe gbegbɔgblɔ si wotu ɖe kpɔɖeŋu dzi. Le gɔmedzedzea me la, woto gbea vɛ be woatsɔ ana Internet dzi dɔwɔnuwo nado agbe, si fia be woana nyatakakadzraɖoƒewo nawɔ dɔ nyuie alesi woate ŋui eye woawɔ nu ɖe sedede siwo zãlawo de asi na wo ŋu kaba. Esia lɔ fesre siwo dona ɖe ŋgɔ, abɔta siwo wɔa dɔ, to asiƒoƒo ɖe afisiwo ɖoɖoa wɔ nu aɖe le ŋu ɖe eme.
- JavaScript: dɔwɔwɔ ŋutɔŋutɔ, si naa sidzedze le JS ŋu
- Nusita JavaScript dɔwɔɖoɖowo va xɔ ŋkɔ alea gbegbe eye wòyi edzi le amewo lɔ̃m: eŋutinunyala bibiwo ƒe nukpɔsusu
- Enaa teƒeawo nɔa agbe
- Nyatakakadzraɖoƒe ƒe dɔwɔnu siwo le ŋgɔ yim la va le amewo lɔ̃m ɖe edzi
- Nusɔsrɔ̃ le bɔbɔe
- Nukatae wòle be nàlé ŋku ɖe JS ŋu ne èle dɔwɔɖoɖowo, robotwo alo taɖodzinu bubuwo ŋlɔm?
- Ðe JavaScript axɔ ŋkɔ alea le etsɔmea?
- Ðe JavaScript ƒe aɖaŋu kple sidzedze hiã ŋutɔŋutɔa: viɖe kple kuxi siwo le ɖoɖowɔgbalẽ sia sɔsrɔ̃ me
- Asitsatsa robotwo ƒe ŋgɔyiyi na asitsatsa: ɖe JavaScript sɔ kple nusi woate ŋu awɔ kplii
- Viɖe kple kuxi siwo le nusɔsrɔ̃ ŋu, kpakple JavaScript dɔwɔɖoɖowo ƒe gbegbɔgblɔ si ate ŋu adzɔ
JavaScript: dɔwɔwɔ ŋutɔŋutɔ, si naa sidzedze le JS ŋu
Wozãa JavaScript le mɔ̃ɖaŋununya ƒe server wɔwɔ ƒe dɔ akpa gãtɔ me. Abe se ene la, wotua asisiwo ƒe nɔƒewo, internet dzi dɔwɔɖoɖowo kple nyatakakadzraɖoƒe ƒe dɔwɔnuwo ɖe ɖoɖowɔgbalẽ sia ƒe kɔpi dzi. Wozãa JavaScript na nuwɔna kple dɔ siwo gbɔna:
- Asitelefon dzi dɔwɔnu siwo wotsɔ de eme siwo wozãna ɖaa la toto vɛ . Esiawo nye ɖoɖowɔɖi ƒe ɖoɖowɔɖi siwo wotu ɖe wo ɖokui me le OS ƒe wɔwɔme.
- Development of the software and hardware part of the service (backend) .. Le ɖoɖowɔɖi gbegbɔgblɔ sia me la, woŋlɔa mɔ̃ akpa gãtɔ, dɔwɔɖoɖowo kple nyatakakadzraɖoƒewo ƒe akpa ememetɔ hã. Eyae nye be, to kɔda ɖeka si woŋlɔ ɖe JavaScript me ƒe kpekpeɖeŋu me la, àte ŋu awɔ asisiwo ƒe dɔwɔƒe eye nàwɔ nyatakakadzraɖoƒea ƒe dɔwɔƒe si le eme siaa.
- Kɔmpiutadziɖoɖowo wɔwɔ . Wozã JS le ɔfis dɔwɔɖoɖowo abe Microsoft, Skype, kple bubuawo ene wɔwɔ me.
- Asitsatsa ƒe robotwo wɔwɔ hena asitsatsa . Esi wònye be JS nye gbegbɔgblɔ si sɔsrɔ̃ le bɔbɔe ta la, asitsalawo dometɔ akpa gãtɔ siwo di be yewoawɔ asitsatsa ƒe robot na yewo ɖokui la zãa ɖoɖowɔɖiwo ƒe gbegbɔgblɔ sia koŋ.
Nusita JavaScript dɔwɔɖoɖowo va xɔ ŋkɔ alea gbegbe eye wòyi edzi le amewo lɔ̃m: eŋutinunyala bibiwo ƒe nukpɔsusu
JavaScript nye dɔwɔɖoɖowo ƒe gbegbɔgblɔ siwo wobia tso ame si wu le xexeame la dometɔ ɖeka, eye wòle nɔƒe 7 lia le TIOBE ƒe xexlẽdzesiwo me. Ðoɖowɔla bibiwo de dzesi susu geɖe siwo tae dɔwɔɖoɖowo ƒe gbegbɔgblɔ si li fifia fɔ ɖe tsitre kple nusita wòyi edzi le amewo lɔ̃m.
Enaa teƒeawo nɔa agbe
Abe alesi míede dzesii le etame ene la, to JS ƒe kpekpeɖeŋu me la, woateŋu atsɔ nyatakakadzraɖoƒe ƒe dɔwɔnu aɖe ava nɔnɔme si me ŋusẽ le me, si ana dɔwɔwɔ le edzi kabakaba eye wòana wòanɔ bɔbɔe. Fesre siwo dona, abɔta siwo wɔa dɔ ŋutɔŋutɔ, ne wozi wo dzi la, wowɔa sedede aɖe koŋ – wowɔa esiawo katã ɖe Java Script ƒe ɖoɖowɔɖi ƒe kɔpi dzi.
Nyatakakadzraɖoƒe ƒe dɔwɔnu siwo le ŋgɔ yim la va le amewo lɔ̃m ɖe edzi
PWA (progressive web applications) nye mɔ̃ɖaŋununya si nye Internet dzi dɔwɔnu kple asitelefon dzi dɔwɔɖoɖo ƒe ƒuƒoƒo, si, le esia ta, tsɔa nyatakakadzraɖoƒe ɖɔlia smartphone dɔwɔɖoɖo aɖe. Google Corporation ye zãnɛ vevie.
Nusɔsrɔ̃ le bɔbɔe
Togbɔ be nu suesuesuewo le ɖoɖowɔgbalẽ ɖesiaɖe sɔsrɔ̃ me, si me JavaScript hã le, ele bɔbɔe ŋutɔ be woasrɔ̃e eye wòdoa dzi le vodadawo me. Zãla ɖesiaɖe, ne edi la, ate ŋu ase kɔdaŋɔŋlɔ ƒe ɖoɖoa gɔme eye wòatu nusiwo wòdi la ɖe edzi.
Nukatae wòle be nàlé ŋku ɖe JS ŋu ne èle dɔwɔɖoɖowo, robotwo alo taɖodzinu bubuwo ŋlɔm?
Susu geɖe li siwo tae wòle be nàzã JavaScript ɖo:
- woate ŋu akpɔ nyatakaka gbogbo aɖewo ku ɖe eƒe nusɔsrɔ̃, nu suesuesuewo kple dɔwɔwɔ ŋu le dutoƒo le Internet dzi;
- dɔwɔnu vovovo siwo wozãna tsɔ wɔa dɔe;
- nuto gã aɖe si me xɔlɔ̃wɔwɔ le si akpe ɖe ŋuwò nàkpɔ nya siwo do mo ɖa la gbɔ;
- woateŋu azã ɖoɖowɔɖi ƒe gbegbɔgblɔ sia le nuto siwo tsi tre ɖe wo nɔewo ŋu kura me: asisiwo ƒe dɔwɔƒe, nyatakakadzraɖoƒea ƒe dɔwɔƒe, asitelefon dzi dɔwɔɖoɖo, kple bubuawo ŋɔŋlɔ;
- didi vevie le dɔwɔƒewo.
Ɖo ŋku edzi! Ðoɖowɔɖia ƒe kɔpi ƒe duƒuƒu, eƒe bɔbɔe kple ɖoɖowɔwɔ le dzidzim ɖe edzi. Gake megavɔ̃ na esia o – akpe na nuto gã aɖe, ame geɖe ƒe ɖetsɔleme ɖe ɖoɖowɔgbalẽ sia ŋu, dɔwɔnu vovovowo na dɔwɔwɔ, ezãla ɖesiaɖe ate ŋu asrɔ̃ nu eye wòawɔ eya ŋutɔ ƒe ɖoɖowɔɖi ƒe nuwɔna le eɖokui si.
Ðe JavaScript axɔ ŋkɔ alea le etsɔmea?
Mɔ̃ɖaŋununya ƒe ɖoɖoa metsi tre ɖe teƒe ɖeka o eye le ɖoɖowɔla bibiwo ƒe nya nu la, menye ɣeyiɣi didi aɖee nye sia la, mɔ̃ɖaŋununya aɖewo nɔ anyi siwo ate ŋu axɔ ɖe ɖoɖowɔɖia ƒe kɔpi ƒe dɔwɔwɔ aɖewo teƒe le web-browser la me, gake egbea woƒe ŋutetewo gbɔdzɔ wu esiwo le JS si. Ele vevie be dɔwɔƒe gã akpa gãtɔ nade ga ɖoɖowɔgbalẽ sia wɔwɔ me edziedzi egbea, eye le esia ta mebu eƒe vevienyenye o, eye wòva le amewo lɔ̃m ɖe edzi eye wòwɔa dɔ nyuie wu. Eyata le nyagblɔɖi si wogblɔ ɖi na ƒe atɔ̃ va ɖo ewo siwo gbɔna gome la, JavaScript ƒe amewo axɔ ŋkɔ, elabena ŋgɔdonyawo kple nyatakakadzraɖoƒe kuku geɖewo gakpɔtɔ le Internet dzi siwo ŋu wòle be woakpɔ. Nusi ava dzɔ emegbe la gbɔgblɔ ɖi sesẽ le mɔ̃ɖaŋununya siwo le tɔtrɔm ɣesiaɣi ta.
Ðe JavaScript ƒe aɖaŋu kple sidzedze hiã ŋutɔŋutɔa: viɖe kple kuxi siwo le ɖoɖowɔgbalẽ sia sɔsrɔ̃ me
Ðoɖowɔla bibiwo ʋlia nya be gbea asɔ ɣeyiɣi didi aɖe, eye seɖoƒe meli na eƒe dɔwɔwɔ ƒe ŋutetewo o kloe. Dɔwɔɖoɖowo ƒe gbegbɔgblɔ geɖewo li, gake JS le go sia me la, eto vovo le eƒe bɔbɔe, lãwo ƒe agbenɔnɔ kple alesi woate ŋu akpɔe ta. Le veviẽ! Ke hã, ehiã hã be nàbu eŋu be JS gbea le tɔtrɔm ɣesiaɣi, eye ahiã be nàsrɔ̃ mɔ̃ɖaŋununya yeyewo ɣesiaɣi eye emegbe nàzã wo le nuwɔna me. Nusita wòle be nàsrɔ̃ JS:
- Nu gbagbewo ƒe agbenɔnɔ ƒe ɖoɖo bɔbɔe aɖe, si le ezãla le mama dedie nu gɔ̃ hã te.
- Dɔwɔwɔ si keke ta kple dɔwɔnu gbogbo aɖewo siwo woatsɔ awɔ dɔe.
- Viɖe aɖeke manɔ aɖaŋuwo ŋu o, woate ŋu aɖe vi na gakpɔkpɔ kple ame ŋutɔ ƒe taɖodzinuwo siaa.
Nusiwo gblẽ le JS ŋu:
- Wotoa mɔ̃ɖaŋununya yeyewo vɛ ɖe gbea me edziedzi, ele be woasrɔ̃ nu tso wo ŋu eye woate ŋu azã wo le nuwɔna me.
Aɖaŋu kple gbegbɔgblɔ ƒe ŋutetewo mehiã na zãla bɔbɔe aɖe si meti taɖodzinu si nye be yeaŋlɔ ɖoɖowɔɖiwo, serverwo alo mewɔ ɖoɖo be yeatsɔ yeƒe agbe aɖo ɖoɖowɔɖiwo gbɔ le etsɔme o la si o, ke hã, le amesiwo di be yewoase nuto sia gɔme gome la, esia anye kpeɖodzi bubu siwo ɖee fia be ewɔ dɔ nyuie.
Asitsatsa robotwo ƒe ŋgɔyiyi na asitsatsa: ɖe JavaScript sɔ kple nusi woate ŋu awɔ kplii
Asitsalawo dometɔ akpa gãtɔ dina be ɖoɖo ƒe kpeɖeŋutɔ nanɔ yewo si hena asitsatsa le gaxɔwo ƒe asitsaƒewo, gake wo dometɔ akpa gãtɔ hã dina be yewoaŋlɔ robot le yewo ɖokui si, eye yewomabia esi wowɔ xoxo o. Nyateƒee, wodoa dzidzɔ na dzonɔameme ma tɔgbe, elabena anya wɔ be nàtsɔ dɔwɔwɔ si hiã la ade wò ŋutɔ wò adzɔnu me. Gake ne asitsalawo mese ɖoɖowɔɖi ƒe gbegbɔgblɔwo gɔme o, eye JS nɔa fli me ɣeaɖewoɣi le asitsatsa ƒe robot xɔŋkɔwo me ya ɖe, ɖe wòsɔa? Eŋutinunyalawo agblɔ be anyo wu be woazã C/C++/C# atsɔ aŋlɔ asitsatsa ƒe robotwo, gake ɖoɖowɔɖi gbegbɔgblɔ siawo menye esiwo le kpuie wu eye wo sɔsrɔ̃ le bɔbɔe wu o, eye xexeame mewu enu ɖe afima o. Ne èzã JS ne èle asitsatsa ƒe bot ŋlɔm la, ekema dɔa axɔ ɣeyiɣi didi vie, gake kpeɖeŋutɔa ƒe dɔwɔwɔ, .
Viɖe siwo le JavaScript zazã me ne èle asitsatsa ƒe robot ŋlɔm:
- Nyagɔmeɖegbalẽ kpui, kɔda si me kɔ kple dɔwɔnu gbadzaa hena dɔwɔwɔ si me dzidzeme le.
- Gbea nye xexeame katã tɔ: si fia be, ewɔla ate ŋu atsɔ nɔnɔme ɖesiaɖe si hiã be woatsɔ aƒle nu dzidzedzetɔe la ade eƒe bot la me.
- Mɔkpɔkpɔ gã aɖe le JavaScript ŋu na ŋgɔyiyi, wotsɔa mɔ̃ɖaŋununya yeyewo trɔa asi le gbea ŋu ɣesiaɣi, si naa mɔnukpɔkpɔ geɖe wu gɔ̃ hã na ewɔla be wòana robot la nanyo ɖe edzi.
- Gaxɔgbalẽviwo ƒe asitsaƒe akpa gãtɔ doa alɔ ɖoɖowɔɖiwo ƒe gbegbɔgblɔ sia, eyata robotawo wɔa woƒe dɔ nyuie.
Nenye be èdze alesi asitsatsa ƒe botwo wɔa dɔe sɔsrɔ̃ gɔme nyitsɔ laa, alo le wo me gɔ̃ hã ne èwɔe ‘t se egɔme o, gake di be yeazã JS atsɔ awɔ adzɔnu aɖe koŋ, mègavɔ̃ be yeate ekpɔ o – gbea le bɔbɔe eye wòle bɔbɔe. Ðoɖowɔwɔ ɖe asitsatsa robotwo ŋu le egbegbe nu ŋutɔŋutɔwo me: https://youtu.be/JGofLCnwfXk
Viɖe kple kuxi siwo le nusɔsrɔ̃ ŋu, kpakple JavaScript dɔwɔɖoɖowo ƒe gbegbɔgblɔ si ate ŋu adzɔ
Viɖe siwo le eŋu | Vodadawo |
Wokeke ta eye wòsɔ kple nuƒolanɔƒe vovovowo. Browser kple OS ɖesiaɖe doa alɔ gbe sia. Kuxi aɖeke menɔ dɔwɔɖoɖowo zazã alo nyatakakadzraɖoƒe ƒe dɔwɔnuwo zazã ɖe kɔmpiuta dzi alo asitelefon dzi le ɣeyiɣi bliboa si wozã kɔdasia me o. | Ne èle ŋgɔyiyi wɔm la, nuƒoƒoƒula la makpe ɖe ŋuwò o. Eyae nye be, dɔwɔƒea mate ŋu anya nenye be kɔpi si woŋlɔ la awɔ dɔ o vaseɖe esime wòɖo fli aɖe si dzi ɖaseɖigbalẽ sia le la gbɔ. |
JavaScript dɔwɔɖoɖoa mehiã be woaɖoe ɖe kɔmpiuta alo mɔ̃ bubu dzi o – woŋlɔa kɔda la ɖe web-browser la me. | Ne èle adzɔnu aɖe ŋlɔm la, ahiã be nàzã dɔwɔnu bubuwo. JS meɖe mɔ ɖe faɛl ƒe asitɔtrɔ, nyawo tsɔtsɔ de eme kple wo tsɔtsɔ de eme ƒe nuwɔnawo ŋu o. Eyata ahiã be agbalẽdzraɖoƒea wɔla nato ame bubuwo ƒe agbalẽdzraɖoƒewo zazã dzi le nuŋɔŋlɔa me. Gake amesiawo ate ŋu ado kpo nu emegbe le sededea me. |
Nusɔsrɔ̃ le bɔbɔe. Nusi mexɔ se o, elabena ɖoɖowɔgbalẽ sia wɔa dɔ nyuie eye ame geɖe lɔ̃a zazã ale gbegbe be adze abe ele be wòasesẽ be woasrɔ̃e ene, gake wofiaa aɖaŋu siwo woazã le suku gɔ̃ hã. Nyagɔmeɖegbalẽ kple lãwo ƒe agbenɔnɔ ƒe ɖoɖoa le bɔbɔe eye eme kɔ, eye ɖeko dɔwɔnu gbogbo aɖewo zazã hena dɔwɔwɔ dzia mɔnukpɔkpɔwo ɖe edzi na dɔwɔƒea. | Dedienɔnɔ si bɔbɔ ɖe anyi. Scripting code geɖe li le Internet dzi, eyata kakaɖedzi aɖeke meli be womage ɖe adzɔnu aɖe si wotu ɖe JS dzi me le etsɔme o. |
Gbegbɔgblɔ si le ɖoƒe kɔkɔ. Esia fia be le gbe sia ƒe ɖoɖoa me la, nuwɔna ƒe ƒuƒoƒo aɖewo li xoxo, siwo nàte ŋu azã atsɔ aŋlɔ kɔda bɔbɔe. Eyae nye be, mehiã be dɔwɔƒea naɖo nuwɔna ɖesiaɖe ɖi o, gbea ana kɔdasia le eɖokui si. Gake esia meɖea ezãla ƒe ŋutetewo dzi kpɔtɔna o. | |
Nutsitsidɔ le nuwɔna me. Adzɔnu siwo woŋlɔ ɖe JavaScript me la to vovo le woƒe agbenɔƒe, woƒe dɔwɔwɔ kabakaba kple woƒe dɔwɔwɔ le mɔ vovovowo nu ta. |
Viɖe siwo le JavaScript sɔsrɔ̃ me, nukawoe nye JS ƒe nɔnɔmewo kple viɖewo: https://youtu.be/fqsCkxnXqbk JavaScript nye dɔwɔɖoɖowo ƒe gbegbɔgblɔ nyui aɖe si me wowɔa dɔ vovovowo le menye na gɔmedzelawo ɖeɖeko o, ke boŋ na dɔnyala bibiwo hã. Nyagɔmeɖegbalẽ kple lãwo ƒe agbenɔnɔ sɔsrɔ̃ le bɔbɔe, eye dɔwɔnu vovovowo akeke ewɔla ƒe tiatiawɔwɔwo ɖe enu. Eye be nàsrɔ̃ ɖoɖowɔgbalẽ sia be nàdo wò ŋutɔ wò dɔwɔwɔ ƒe ŋutetewo ɖe dzi alo nàzãe na taɖodzinu aɖewo, alo menye nenema o – etso amesiame gbɔ be wòatso nya me na eɖokui.