Monday, September 5, 2022

One test to confirm JavaScript

 The sciences need investigation methods to justify itself, or isn't science maybe be philosophy but not a science

function ne () {

    console.log('Super');

    return 3;

}

undefined

let x = ne();

Super

undefined

x;

3


let ni = ()=>x;

undefined

ni();

3

So I put that code in the console to see if really is assigned to the variable x the function and once trying creating a second function to receive and assign to it the x the function only will received the value and the functionality of print in the console the information was lost so isn't assigned the function to x if one part will be lost, computers have that in mind if part of what you say make sense he could keep it, and the rest that is lye the computer will thru away, so you aren't assigning you are saying something for the computer and it accepted part because it considered only the part that is a value 3, so for the computer the part that is true is that it could understand how being true that f() is a number 3.

Rute Bezerra de Menezes Gondim

Ps.: The same comand using directly the function without the x working in the console.

let mi = ()=> ne();

undefined

mi();

VM973:3 Super

3


No comments:

Post a Comment