Jump to content

return({}) === return{}


L8V2L

Recommended Posts

With function, I'll get confuse when I see curly braces infront of the return statement:

"use strict";function(baz){  If(baz === "?"){ //the curly braces    return{foobar:function(baz){return{/*...*/}};  }}//Is that top function the same as:function(baz){  If(baz === "?"){//the parenthese warp/inclose the curly braces    return({foobar:function(baz){     return({/*...*/})}    );   }}
Edited by L8V2L
Link to comment
Share on other sites

It's returning an object literal.

So this:
(function(){  return(Boolean(return({}) === return{}))}())();/*return true? ...if it could actually be compare like this.*/
Is true?Also, can you give me an example of database tubular data? And what SQL database data look like? Edited by L8V2L
Link to comment
Share on other sites

That code will return an empty object. A return statement is not an expression.Tabular (not tubular) data is any data that would best be displayed inside a table. A database table can be envisioned as a spreadsheet, more or less.

Link to comment
Share on other sites

That code will return an empty object. A return statement is not an expression.Tabular (not tubular) data is any data that would best be displayed inside a table. A database table can be envisioned as a spreadsheet, more or less.

Is that what you prefer? You a php programmer... What database would you prefer to work with?
Link to comment
Share on other sites

I've mostly worked with MySQL. If I didn't work with MySQL, then it would probably be MariaDB or PostgreSQL. I haven't looked into moving our servers off of MySQL.

What type of data format they hold their data in? Tubular right?
Link to comment
Share on other sites

How data is actually stored on disk is left to the storage engine. MySQL can use multiple storage engines. How each of them work is a fairly large topic. Most of the time they use concepts of pages to store chunks of records, with associated indexes. One storage engine that MySQL uses is InnoDB.https://www.google.com/search?client=opera&q=how+innodb+stores+data&sourceid=opera&ie=UTF-8&oe=UTF-8

Link to comment
Share on other sites

 

var i, ftd, arr; i = 0; arr = [1,2,3,4,5,6,7,8,9] ftd = []; while(arr[i]){ftd[i] = (arr[i]>5)?(arr[i]):(null); if(ftd[i]===null){ftd.splice(i,1)}; i++;}ftd[2];

splice leaves undefined holes.

Link to comment
Share on other sites

What are these: []? What are your markdown language call? These ([) (])?The... Code you use to style the text in the post, what is the name of the language? And if not a language what is it?

Edited by L8V2L
Link to comment
Share on other sites

I call them square brackets.

I updated cause I knew it'll be some crud like that. Edited by L8V2L
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...