Learning JavaScript - JavaScript Essentials for Modern Application Development by Ethan Brown

本文介绍了Ethan Brown的《Learning JavaScript》一书,该书适用于现代应用程序开发。作者鼓励新手程序员不断学习和提问,尤其是在JavaScript正经历革新的时期,如HTML5和ES6简化了Web开发,Node.js扩展了JavaScript的应用范围。文章还提到了CSS、HTML、Git、npm、模块管理和JavaScript的基础知识,包括变量、常量、字面量、对象、数组和错误处理等。
摘要由CSDN通过智能技术生成

Learning JavaScript JAVASCRIPT ESSENTIALS FOR MODERN APPLICATION DEVELOPMENT by Ethan Brown


我的GitHub 文件: https://github.com/Li-YangZhong/learning_javascript_by_ethan_brown

I certainly hold no animosity toward amateurs: everyone has to start somewhere, programming is a profitable skill, and a career in programming has many advantages.
To the new programmer, the amateur, I say this: there is no shame in being an amateur. There is some shame in staying an amateur (if you make programming your profession, certainly). If you want to practice programming, practice it. Learn everything you can, from every source you can. Keep an open mind and—perhaps most importantly—question everything. Question every expert. Question every experienced programmer. Constantly ask “Why?”
You are learning JavaScript at a very exciting time. The Web is leaving its infancy (technically speaking), and web development isn’t the confusing, complicated Wild West that it was 5 and 10 years ago. Standards like HTML5 and ES6 are making it easier to learn web development, and easier to develop high-quality applications.
Node.js is extending the reach of JavaScript beyond the browser, and now it is a viable choice for system scripting, desktop application development, backend web development, and even embedded applications.


Cascading Style Sheets (CSS) also use JavaScript syntax for block comments (inline comments are not supported in CSS).
HTML (like CSS) doesn’t have inline comments, and its block comments are different than JavaScript. They are surrounded by the unwieldy <!-- and -->


Ctrl+Shift+J /*open and close Console in the Chrome browser*/


https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js

From https://www.bootcdn.cn/jquery/


To create a subdirectory called test, type:

$ mkdir test

Two periods .. are a shortcut for “parent directory.” So to go “up” a directory, type:

$ cd .. 

Beginners are often confused by git add; the name makes it seem like you’re adding files to the repository. Those changes can be new files, but just as likely they’re changes to files already in the repository. In other words, you’re adding changes, not files (and a new file is just a special type of change).


verify that npm and Node are functioning on your system using the following commands:

node -v
npm -v

Install the popular Underscore package to see how it works by running the following:

$ npm install underscore 

If we wanted to install a specific version of Underscore, we can specify the version number explicitly:

$ npm install underscore@1.8.0 

When you install local packages, you should add either the--saveor--saveDevflag; if you don’t, the package will be installed, but not listed in the package.json file.


Eric@Lenovo MINGW64 /d/sync_with_github/learning_javascript_by_ethan_brown (master)

$ npm init

This utility will walk you through creating a package.json file.
It only covers the most common items, and tries to guess sensible defaults.

See npm help json for definitive documentation on these fields
and exactly what they do.

Use npm install <pkg> afterwards to install a package and
save it as a dependency in the package.json file.

Press ^C at any time to quit.
package name: (learning_javascript_by_ethan_brown)
version: (1.0.0)
description:
e
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值