1. Intro - Part B Flashcards

Summary: JS originally created as a browser-only language but is now used in many other environments as well Today JS is the most widely adopted browser language with full integration with HTML/CSS Many other languages have been developed, which get transpiled into JS, to provide certain feature

1
Q

Why are abilities of JS limited in a browser environment?

2x

A

Protect safety of user

Prevent malicious access of a webpage to private info or harm user’s data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Give examples of restrictions

3x

A

TBA + see tutorial for fuller description

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What combination of 3 features makes JS:
Unique as a browser technology
The most widespread tool for creating browser interfaces
3x

A

Full integration with HTML & CSS
Simplicity
Supported by all major browsers - enabled by default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the term for converting another language to JS before being run in the browser?

A

Transpiling

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Why have new languages been developed that sit over JS?

A

Need for different features to suit requirements of different people and projects

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Give examples of languages that sit over JS

5x

A

CoffeeScript - syntactic sugar - often used by Ruby devs
TypeScript - adds “strict data typing” - developed by MS
Flow - adds data typing - developed by FB
Dart - standalone with own engine - runs in non-browser environments (like mobile apps) but can also be transpiled - developed by Google
Brython - transpiles Python to JS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Where to find info re manuals and specs?

A

Tutorial page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name two types of code editors with summaries of their uses

2x

A

IDE - Powerful, many features - usually operates on a whole project
Lightweight - Less powerful but fast, elegant and simple - usually for working on one file
See tutorial page for more details

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Name two plug-ins that might be found in some lightweight editors

A

Directory-level syntax analyzers

Autocompleters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Where to find guidance on developer tools

A

Tutorial page

How well did you know this?
1
Not at all
2
3
4
5
Perfectly