Welcome, Guest
You have to register before you can post on our site.

Username/Email:
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 49
» Latest member: antwantillman
» Forum threads: 4,492
» Forum posts: 4,495

Full Statistics

Online Users
There are currently 1035 online users.
» 0 Member(s) | 1033 Guest(s)
Yandex, Bing

Latest Threads
SELECT statement with MS ...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:35 PM
» Replies: 0
» Views: 1,080
SELECT statement with the...
Forum: MS Access SQL Tutorials
Last Post: Qomplainerz
07-27-2023, 03:31 PM
» Replies: 0
» Views: 529
Creating hyperlinks in HT...
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 01:23 PM
» Replies: 0
» Views: 829
What's new in HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:48 PM
» Replies: 0
» Views: 555
What is HTML5?
Forum: HTML5 Tutorials
Last Post: Qomplainerz
07-27-2023, 12:43 PM
» Replies: 0
» Views: 520
Neck isometric exercises
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:44 AM
» Replies: 0
» Views: 811
Shoulder shrug
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 476
Neck retraction
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:43 AM
» Replies: 0
» Views: 438
Neck flexion and extensio...
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 506
Neck rotation
Forum: Exercises
Last Post: Qomplainerz
07-27-2023, 11:42 AM
» Replies: 0
» Views: 478

 
  JavaScript - Join two arrays with concat()
Posted by: Qomplainerz - 04-04-2023, 07:44 AM - Forum: JavaScript Tutorials - No Replies

Code:
const arr1 =
      [
        "Cecile",
        "Lone"
      ];

const arr2 =
      [
        "Emil",
        "Tobias",
        "Linus"
      ];

const children = arr1.concat(arr2);

document.write(children);

Print this item

  JavaScript - Join three arrays with concat()
Posted by: Qomplainerz - 04-04-2023, 07:44 AM - Forum: JavaScript Tutorials - No Replies

Code:
const arr1 =
      [
        "Cecile",
        "Lone"
      ];

const arr2 =
      [
        "Emil",
        "Tobias",
        "Linus"
      ];

const arr3 =
      [
        "Robin"
      ];

const children = arr1.concat(arr2, arr3);

document.write(children);

Print this item

  JavaScript array constructor
Posted by: Qomplainerz - 04-04-2023, 07:43 AM - Forum: JavaScript Tutorials - No Replies

Code:
const fruits =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

let text = fruits.constructor;

document.write(text);

Print this item

  JavaScript Array copyWithin() example
Posted by: Qomplainerz - 04-04-2023, 07:43 AM - Forum: JavaScript Tutorials - No Replies

Code:
const fruits1 =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

const fruits2 =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

// Copy the first two elements to the last two elements

let text = fruits1.copyWithin(2, 0);

document.getElementById("output1").innerHTML = text;

// Copy the last two elements to the first two elements

let text2 = fruits2.copyWithin(0, 2);

document.getElementById("output2").innerHTML = text2;

Print this item

  JavaScript Array entries() example
Posted by: Qomplainerz - 04-04-2023, 07:42 AM - Forum: JavaScript Tutorials - No Replies

Code:
const fruits =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

const f = fruits.entries();

for(let x of f)
  {
    document.getElementById("demo").innerHTML += x;
  }

Print this item

  JavaScript Array every() example
Posted by: Qomplainerz - 04-04-2023, 07:42 AM - Forum: JavaScript Tutorials - No Replies

Code:
const ages =
      [
        32,
        33,
        16,
        40
      ];

function checkAge(ages)
{
  return ages > 18;
}

document.getElementById("demo").innerHTML = ages.every(checkAge);

Print this item

  JavaScript Array fill() method examples
Posted by: Qomplainerz - 04-04-2023, 07:41 AM - Forum: JavaScript Tutorials - No Replies

Code:
const fruits1 =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

document.getElementById("demo1").innerHTML = fruits1.fill("Kiwi");

const fruits2 =
      [
        "Banana",
        "Orange",
        "Apple",
        "Mango"
      ];

document.getElementById("demo2").innerHTML = fruits2.fill("Kiwi", 2, 4);

Print this item

  JavaScript - The filter() method
Posted by: Qomplainerz - 04-04-2023, 07:41 AM - Forum: JavaScript Tutorials - No Replies

Code:
const ages =
      [
        32,
        33,
        16,
        40
      ];

function checkAdult(ages)
{
  return ages >= 18;
}

document.getElementById("demo").innerHTML = ages.filter(checkAdult);

Print this item

  JavaScript - The find() method
Posted by: Qomplainerz - 04-04-2023, 07:40 AM - Forum: JavaScript Tutorials - No Replies

Code:
const ages =
      [
        3,
        10,
        18,
        20
      ];

function checkAge(ages)
{
  return ages > 18;
}

document.getElementById("demo").innerHTML = ages.find(checkAge);

Print this item

  Clone an array in JavaScript
Posted by: Qomplainerz - 04-04-2023, 07:38 AM - Forum: JavaScript Tutorials - No Replies

Code:
let x = [1, 2, 3, 4];
let y = Array.from(x);
document.write(y);

Print this item