Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

javascripting

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

javascripting - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

2

package.json
{
"name": "javascripting",
"description": "Learn JavaScript by adventuring around in the terminal.",
"version": "2.0.1",
"version": "2.0.2",
"repository": {

@@ -6,0 +6,0 @@ "url": "git://github.com/sethvincent/javascripting.git"

@@ -27,3 +27,3 @@ ---

`function.js` ファイルを作りましょう。
`functions.js` ファイルを作りましょう。

@@ -30,0 +30,0 @@

@@ -14,6 +14,6 @@ ---

```js
var a = 4; // a is a global variable, it can be accesed by the functions below
var a = 4; // a is a global variable, it can be accessed by the functions below
function foo() {
var b = a * 3; // b cannot be accesed outside foo function, but can be accesed by functions
var b = a * 3; // b cannot be accessed outside foo function, but can be accessed by functions
// defined inside foo

@@ -36,3 +36,3 @@ function bar(c) {

// variables defined here
// can't be accesed outside
// can't be accessed outside
})(); // the function is immediately invoked

@@ -66,3 +66,3 @@ ```

Use your knowledge of the variables' `scope` and place the following code inside on of the functions in 'scope.js'
Use your knowledge of the variables' `scope` and place the following code inside one of the functions in 'scope.js'
so the output is `a: 1, b: 8,c: 6`

@@ -72,2 +72,2 @@ ```js

```
---
---
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc