Commit f9804ffc authored by Ahmad Nemati's avatar Ahmad Nemati

init

parent 393a9f5d
......@@ -12,7 +12,6 @@ let arr=[
{
type: "zarib",
commision: 0.0008,
base:100,
paramStart: 100,
paramEnd: 1000,
inidicator: 0.1
......@@ -21,7 +20,6 @@ let arr=[
{
type: "base",
commision: 0.0008,
base:100,
paramStart: 100,
paramEnd: 1000,
inidicator: 0.1
......@@ -69,6 +67,7 @@ function createfile(data) {
async function add(data)
{
let old=data
let arr=[]
if (data.type ==='plus')
{
......@@ -87,12 +86,30 @@ async function add(data)
data.paramStart=data.paramStart+data.inidicator
if (data.type ==='plus')
data.base=data.paramStart
// arr.push({
// type: data.type,
// commision: data.commision,
// base: data.base,
// param: data.paramStart
// })
if (data.type !=='plus')
{
for (let i=10;i<1000;i=i+10)
{
arr.push({
type: data.type,
commision: data.commision,
base: data.base,
base: i,
param: data.paramStart
})
}
}
}
}
\ No newline at end of file
let arr=[1,2,3,4,5,6,7,8,9,10]
let arr2=[1,2,3,4,5,6,7,8,9,10]
let t=0
for (let i=0;i<arr.length;i++)
for (let j=0;j<arr2.length;j++)
for (let z=0;z<arr2.length;z++)
t++
console.log(t)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment