Giter Site home page Giter Site logo

data_structures_and_algorithms_using_javascript's Introduction

《数据结构与算法JavaScript描述》学习笔记

cover

〇. 本项目介绍:
对《数据结构与算法JavaScript描述》官方发布的随书代码练习和解读

一. 官方项目地址:
https://github.com/oreillymedia/data_structures_and_algorithms_using_javascript

二. 使用js shell运行本书代码(以windows 10操作系统为例):

1. 安装:下载mozilla官方的jsshell压缩包即可

  1. 前往https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/

  2. 找到自己的操作系统对应的jsshell压缩包,本例中下载的是jsshell-win64.zip

  3. 解压缩jsshell-win64.zip文件到自己喜欢的路径,本例中最终解压路径为D:\jsshell-win64\

2. 使用jsshell中的js.exe运行js文件:

新建一个hello.js文件,写一行代码print("hello world!"),有两种方式使用jsshell运行hello.js文件:

2.1) 方法一:在jsshell-win64文件夹下直接运行

2.1.1) 将hello.js文件放入jsshell-win64文件夹  

2.1.2) 在jsshell-win64文件夹下,打开windows自带的cmd或PowerShell命令行工具  

2.1.3) 在命令行输入.\js.exe .\hello.js  

D:\jsshell-win64>.\js.exe .\hello.js  

运行结果:hello world!  

备注:js.exe和hello.js前需要加上.\,或者按tab键自动补全也会加上.\

2.2) 方法二:将jsshell-win64/js.exe添加到windows系统环境变量,全局任意调用js.exe

2.2.1) 将jsshell文件夹添加到windows系统环境变量PATH  

2.2.2) 进入hello.js所在文件夹,打开windows自带的cmd或PowerShell命令行工具  

2.2.3) 在命令行输入js.exe .\hello.js  

x:\xxx>js.exe .\hello.js  

备注:hello.js前需要加上.\,或者按tab键自动补全也会加上.\

data_structures_and_algorithms_using_javascript's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.