JS.Additional articles

JavaScript's interaction with HTML is handled through events that occur when the user or the browser manipulates a page. When the page loads, it is called an event. When the user clicks a button, that click too is an event. Other examples include events like pressing any key, closing a window, resizing a window, etc.

TASK 1

Given an array of Uint8Array, write a function concat(arrays) that returns a concatenation of them into a single array.

TASK 2

Write a JavaScript function to validate whether a given value type is boolean or not.

TASK 3

Write a JavaScript function to validate whether a given value type is error or not.

TASK 4

Write a JavaScript function to validate whether a given value type is NaN or not.

TASK 5

Write a JavaScript function to validate whether a given value type is null or not.

TASK 5

Write a JavaScript function to validate whether a given value is number or not.

TASK 6

Write a JavaScript function to validate whether a given value is object or not.

TASK 7

Write a JavaScript function to validate whether a given value type is pure json object or not.

TASK 8

Write a JavaScript function to validate whether a given value is RegExp or not.

TASK 9

Write a JavaScript program to draw two intersecting rectangles, one of which has alpha transparency.

TASK 10

Write a JavaScript function to get a copy of the object where the keys have become the values and the values the keys.

TASK 11

Write a JavaScript program to draw the following diagram [diagonal, white to black circles].

Top