First, inside a function definitionhttps://www.jghnorth.org.uk/notes/JSfeats.html
var v;
makes v a local variable.
[...]
However, in 2015 two other kinds of variable
were introduced that do have block scope. They
are declared using the keywords const and
let instead of var.
Attention to John Harris <niam@jghnorth.org.uk>
In case you are about to go on a fishing spree
for F.U.D. like here:
Fear, Uncertainty and Doubt https://de.wikipedia.org/wiki/Fear,_Uncertainty_and_Doubt
Be warned, your findings might mostlikely come out
as lame accusations. Judging from your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript, you write:
First, inside a function definitionhttps://www.jghnorth.org.uk/notes/JSfeats.html
var v;
makes v a local variable.
[...]
However, in 2015 two other kinds of variable
were introduced that do have block scope. They
are declared using the keywords const and
let instead of var.
Why not just admit that var is practically deprecated,
and make a fresher of your nonsene tutorials, remove it?
It's probably only still there for backward compatibility.
4 Reasons Why ‘var’ is Considered Obsolete in Modern JavaScript https://plainenglish.io/blog/4-reasons-why-var-is-considered-obsolete-in-modern-javascript
Also I doubt you can run Dogelog Player for JavaScript
with your mindset, it requires ES6 modules.
your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript,
On 24/03/2024 13:04, Mild Shock wrote:
<snip>
your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript,
<snip>
a) It was written back when this group's FAQ was still being updated.
b) It's job was to introduce JavaScript to novice programmers who knew nothing about the language.
c) It's aged much better than the FAQ as it concentrates on fundamentals rather than current practice.
There's nothing stopping you writing a replacement document.
John
Something else that is outdated. Why go into
the pain of making you own website? Start writing
blogs and use forums like for example:
https://medium.com/
https://qiita.com/
Time to invest: a) Time to register at the blog
service site plus b) Time to learn their markup language.
a) Takes usually 1 minute and b) takes around 5 minutes.
Write a blog about how you, John Harris, sees the
future of Garbage Collection and Datastructures, or
any other topic of your choice, I hope the topic
is not how to burp in a pub, by misunderstanding the
Drinkers Paradox. PyPy recently fixed a 10 years
old bug releated to their garbage collection:
Fixing a Bug in PyPy’s Incremental GC
Carl Friedrich Bolz-Tereick - 2024-03-26 https://www.pypy.org/posts/2024/03/fixing-bug-incremental-gc.html
John Harris schrieb:
On 24/03/2024 13:04, Mild Shock wrote:
<snip>
your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript,
<snip>
a) It was written back when this group's FAQ was still being updated.
b) It's job was to introduce JavaScript to novice programmers who knew
nothing about the language.
c) It's aged much better than the FAQ as it concentrates on
fundamentals rather than current practice.
There's nothing stopping you writing a replacement document.
John
Attention to John Harris <niam@jghnorth.org.uk>
In case you are about to go on a fishing spree
for F.U.D. like here:
Fear, Uncertainty and Doubt https://de.wikipedia.org/wiki/Fear,_Uncertainty_and_Doubt
Be warned, your findings might mostlikely come out
as lame accusations. Judging from your JavaScript
tutorials your are stuck somewhere in the yesterdays
yesterday of JavaScript, you write:
First, inside a function definitionhttps://www.jghnorth.org.uk/notes/JSfeats.html
var v;
makes v a local variable.
[...]
However, in 2015 two other kinds of variable
were introduced that do have block scope. They
are declared using the keywords const and
let instead of var.
Why not just admit that var is practically deprecated,
and make a fresher of your nonsene tutorials, remove it?
It's probably only still there for backward compatibility.
4 Reasons Why ‘var’ is Considered Obsolete in Modern JavaScript https://plainenglish.io/blog/4-reasons-why-var-is-considered-obsolete-in-modern-javascript
Also I doubt you can run Dogelog Player for JavaScript
with your mindset, it requires ES6 modules.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 372 |
Nodes: | 16 (2 / 14) |
Uptime: | 71:22:46 |
Calls: | 7,942 |
Calls today: | 9 |
Files: | 13,001 |
Messages: | 5,807,163 |
Posted today: | 1 |