xxxxxxxxxx
#include <iostream>
using namespace std;
void noReturntype()
{
cout << "This are none return type\n" ;
}
int intReturn(int a, int b)
{
return 1 + 2;
}
string textReturn()
{
return "Statement1";
}
bool trueorfalseReturn()
{
return true;
}
char character()
{
return 'c';
}
int main()
{
cout << "\n\n";
noReturntype();
cout << "int function and This are numbers:\t" << intReturn() << endl;
cout << "string function and This are String type:\t" << textReturn() << endl;
cout << "bool function and This are boolem True(1) or false(1):\t" << trueorfalseReturn() << endl;
cout << "char function and This are Characters:\t" << character() << endl;
cout << "\n\n";
return 0;
}
This are the return value in c++ in different variables
xxxxxxxxxx
function X()
{
return function x()
{
return "xxxxxxx"
}
}
let q = new X();
console.log(q());
//returns "xxxxxxx"
//to be able to create an instance of a function, make sure it returns a function and then q() gets the value that said function returns
xxxxxxxxxx
{
"name": String,
"role": String,
"lastModified": String,
"editorType": String,
"thumbnailUrl": String,
"version": String,
"document": Node,
"components": Map<String, Component>,
"componentSets": Map<String, ComponentSet>,
"schemaVersion": 0,
"styles": Map<String, Style>
"mainFileKey": String,
"branches": [
{
"key": String,
"name": String,
"thumbnail_url": String,
"last_modified": String,
"link_access": String,
}
]
}