코딩을 할 때마다 나는 종종 앞뒤에 몇 가지 개념을 시험해보기 위해 REPL을 사용하고있다. Ruby on Rails 개발에서 나는 PRY을 사용하고 파이썬에는 bpython을 사용합니다. 자바 스크립트에 해당하는 것이 있는지 궁금해합니다. 기본적으로 터미널에서 자바 스크립트 코드를 테스트하십시오.Javascript REPL from command line
4
A
답변
8
일반적으로 JavaScript가 활성화 된 브라우저가 열려 있어도 종종 Node.js REPL을 사용하고 있습니다.
명령 프롬프트에서 node
을 실행하기 만하면 REPL이 열립니다.
0
Node.js는 REPL을 제공합니다. 일반적으로 Node에 들어갈 생각은 없을 것입니다.
3
당신은 Node.js를를 사용해야합니다 :이 평소 브라우저 요소 (window
, document
) 및 DOM 작동하지 않습니다
$ node
> 1 + 1
> 2
>
,하지만. 브라우저 환경을 원하면 Phantomjs REPL과 Casperjs를 확인하십시오. 용량에 대해서는 잘 모르겠지만.
+0
좋아요! PhantomJS가 CLI를 통해 REPL로 사용될 수 있는지는 몰랐습니다. – conceptdeluxe
관련 문제
- 1. Jmeter-url from command line
- 2. svn history from command line
- 3. Pear :: Auth access from command line
- 4. Android 빌드 .jar from command line
- 5. Clojure : REPL 대신 스크립트에서 * command-line-args * 사용
- 6. Python Command Line App
- 7. Truly Interactive command-line
- 8. cobertura via command line
- 9. java.lang.NoClassDefFoundError in command line
- 10. 이상한 "프로파일 링"출력. from Rails command line
- 11. Java slick command line app?
- 12. Java NoClassDefFoundError in Command Line
- 13. NSTimer in command line tool
- 14. grep date from line
- 15. bash/command-line 기술을 향상시키는 방법은 무엇입니까?
- 16. GDB in Emacs in Command Line Arguments
- 17. .Net Application Loader 's Command Line Parser
- 18. Command Line Escape (Windows 7, CMD)
- 19. <command-line> : 오류 : makefile에
- 20. glassfish 설치 3.1.2 in command line
- 21. Open IE with command line arguement
- 22. Command-Line App C에서 파일 읽기
- 23. bash 대 scala.sys.process.Process with Command Line Arguments
- 24. Java 6/7 Decompiling Command Line
- 25. LOAD DATA LOCAL INFILE from line after line
- 26. 정적 코드 분석기를 사용하는 방법 CPD ignoreLiterals 및 ignoreIdentifiers from command-line?
- 27. PowerShell -command from batch Invoke-RestMethod
- 28. SKPhysicsBody from line (닫힌 다각형이 아님)
- 29. SQL 문에서 변수를 사용하는 방법 From Line
- 30. Android 앱의 REPL REPL
node.js와 같은 의미입니까? –
또한 명령 줄이 아닌 브라우저 개발자 콘솔을 열 수도 있지만 빠른 작업을 수행하는 데는 도움이됩니다. – travis