REPL yog dab tsi hauv JavaScript?
REPL yog dab tsi hauv JavaScript?

Video: REPL yog dab tsi hauv JavaScript?

Video: REPL yog dab tsi hauv JavaScript?
Video: Leng Yang - Yog Vim Dab Tsi (Official Full Song | Nkauj Tawm Tshiab) 2020/05/24 2024, Hlis ntuj nqeg
Anonim

REPL stands rau Nyeem Eval Print Loop thiab nws sawv cev rau lub computer ib puag ncig zoo li lub Windows console lossis Unix / Linux plhaub qhov twg cov lus txib nkag mus thiab lub kaw lus teb nrog cov zis hauv kev sib tham sib. Node. js los yog Node los nrog a REPL ib puag ncig.

Tsuas yog li ntawd, lub ntsiab lus ntawm REPL yog dab tsi?

Read-eval-print loop ( REPL ), kuj tseem hu ua kev sib tham sib sab saum toj lossis hom lus plhaub, yog qhov yooj yim, sib tham sib computer programming ib puag ncig uas siv tib tus neeg siv cov khoom siv (piv txwv li, ib kab lus), ntsuas (executes) lawv, thiab xa cov txiaj ntsig rau tus neeg siv; ib qho program sau hauv a REPL ib puag ncig raug tua

Tsis tas li ntawd, REPL yog dab tsi hauv node JS? Node . js los nrog ib puag ncig virtual hu ua REPL (aka Node plhaub). REPL stands rauRead-Eval-Print-Loop. Nws yog ib txoj kev ceev thiab yooj yim rau kev sim yooj yim Node . js /JavaScript code. Txhawm rau tso tawm REPL ( Node plhaub), qhib cov lus txib (hauv Windows) lossis lub davhlau ya nyob twg (hauv Mac lossis UNIX / Linux) thiab ntaus node raws li qhia hauv qab no.

Hauv qhov no, REPL siv rau dab tsi?

REPL (NYEEM, EVAL, PRINT, LOOP) yog ib puag ncig hauv computer zoo ib yam li Plhaub (Unix/Linux) thiab cov lus txib kom sai. System cuam tshuam nrog tus neeg siv los ntawm kev tawm ntawm cov lus txib / lus. siv . Nws yog ib qho tseem ceeb hauv kev sau ntawv thiab debugging cov lis dej num.

Node command ua dab tsi?

Node -Specific Functionality Hauv Node , txhua cov ntaub ntawv yog kho raws li amodule. xav tau () yog muaj nuj nqi siv los import modules los ntawm lwm cov ntaub ntawv los yog Node pob khoom. txheej txheem yog ib tug objectreferencing rau qhov tseeb computer txheej txheem khiav a Node program thiab tso cai rau kev nkag mus rau lus txib - kab lus sib cav thiab ntau ntxiv.

Pom zoo: