Kuv yuav pib node REPL li cas?
Kuv yuav pib node REPL li cas?

Video: Kuv yuav pib node REPL li cas?

Video: Kuv yuav pib node REPL li cas?
Video: 02-28-2023 Xyooj Pov Ntse talk show 2024, Kaum ib hlis
Anonim

Yog koj muaj node ntsia, ces koj kuj muaj cov Node . js REPL . Rau pib nws, yooj yim nkag mus node nyob rau hauv koj cov kab hais kom ua kab: node.

Tom qab ntawd, kuv yuav qhib qhov node hauv REPL li cas?

Txhawm rau tso tawm REPL ( Node plhaub), qhib command prompt (hauv Windows) lossis davhlau ya nyob twg (hauv Mac lossis UNIX / Linux) thiab ntaus node raws li qhia hauv qab no. Nws yuav hloov cov lus qhia rau> hauv Windows thiab MAC. Tam sim no koj tuaj yeem sim zoo nkauj npaum li cas Node . js/JavaScript qhia hauv REPL.

Ib yam li ntawd, REPL yog dab tsi hauv node JS? REPL stands rau Nyeem Eval Print Loop thiab nws sawv cev rau lub computer ib puag ncig zoo li 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 bundled nrog a REPL ib puag ncig.

Kuj paub, koj ntaus dab tsi rau hauv kab hais kom qhib qhov node REPL?

Txhawm rau pib ua haujlwm nrog REPL ib puag ncig ntawm NODE ; qhib nce lub davhlau ya nyob twg ( hauv case of UNIX/LINUX) los yog Command prompt ( hauv case of Windows) thiab sau node thiab nias ' nkag ' pib lub REPL . Cov REPL tau pib thiab demarcated los ntawm '>' cim.

Kuv yuav tawm REPL li cas?

Koj ua tau tawm tus REPL los ntawm kev ntaus Ctrl + D (nias Ctrl thiab D nyob rau tib lub sijhawm).

Pom zoo: