# Basics about Programming
In this first chapter, we'll learn the basics of programming and the Javascript language.
Programming means writing code. A book is made up of chapters, paragraphs, sentences, phrases, words and finally punctuation and letters, likewise a program can be broken down into smaller and smaller components. For now, the most important is a statement. A statement is analogous to a sentence in a book. On its own, it has structure and purpose, but without the context of the other statements around it, it isn't that meaningful.
A statement is more casually (and commonly) known as a _line of code_. That's because statements tend to be written on individual lines. As such, programs are read from top to bottom, left to right. You might be wondering what code (also called source code) is. That happens to be a broad term which can refer to the whole of the program or the smallest part. Therefore, a line of code is simply a line of your program.
Here is a simple example:
```javascript
var hello = "Hello";
var world = "World";
// Message equals "Hello World"
var message = hello + " " + world;
```
This code can be executed by another program called an _interpreter_ that will read the code, and execute all the statements in the right order.
没有合适的资源?快使用搜索试试~ 我知道了~
javascript学习知识大全.rar
共42个文件
md:39个
png:1个
license:1个
需积分: 5 0 下载量 125 浏览量
2024-02-16
14:06:00
上传
评论
收藏 47KB RAR 举报
温馨提示
javascript
资源推荐
资源详情
资源评论
收起资源包目录
javascript学习知识大全.rar (42个子文件)
javascript学习知识大全
strings
length.md 505B
create.md 673B
concat.md 653B
README.md 323B
arrays
length.md 499B
indices.md 1KB
README.md 434B
assets
intro.png 23KB
LICENSE 11KB
basics
equality.md 1KB
types.md 1KB
comments.md 727B
README.md 1KB
variables.md 1KB
conditional
comparators.md 2KB
if.md 1KB
else.md 957B
README.md 931B
concatenate.md 2KB
objects
delete.md 574B
mutable.md 368B
prototype.md 2KB
creation.md 322B
properties.md 1KB
reference.md 552B
global_footprint.md 740B
README.md 216B
enumeration.md 535B
numbers
create.md 574B
advanced.md 560B
README.md 340B
operators.md 693B
loops
dowhile.md 723B
while.md 989B
for.md 845B
README.md 413B
.gitignore 36B
functions
declare.md 904B
README.md 231B
higher_order.md 4KB
SUMMARY.md 1KB
README.md 481B
共 42 条
- 1
资源评论
赵闪闪168
- 粉丝: 905
- 资源: 2748
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功