Sample object :
var student = {
name : "David Rayy",
sclass : "VI",
rollno : 12 };Sample Output : name,sclass,rollno
Sample object :
var student = {
name : "David Rayy",
sclass : "VI",
rollno : 12 };
Sample object :
var student = {
name : "David Rayy",
sclass : "VI",
rollno : 12 };
var library = [
{
author: 'Bill Gates',
title: 'The Road Ahead',
readingStatus: true
},
{
author: 'Steve Jobs',
title: 'Walter Isaacson',
readingStatus: true
},
{
author: 'Suzanne Collins',
title: 'Mockingjay: The Final Book of The Hunger Games',
readingStatus: false
}];
Volume of a cylinder : V = πr2h
where r is the radius and h is the height of the cylinder.
Note : Bubble sort is a simple sorting algorithm that works by repeatedly stepping through the list to be sorted, Sample Data : [6,4,0, 3,-2,1]
Expected Output : [-2, 0, 1, 3, 4, 6]
Sample Data : dog
Expected Output : ["d", "do", "dog", "o", "og", "g"]
Note : The output will come every second.
Expected Console Output :
"14:37:42"
"14:37:43"
"14:37:44"
"14:37:45"
"14:37:46"
"14:37:47"
Note : Create two methods to calculate the area and perimeter. The radius of the circle will be supplied by the user.
Sample Object :
var library = [
{
title: 'The Road Ahead',
author: 'Bill Gates',
libraryID: 1254
},
{
title: 'Walter Isaacson',
author: 'Steve Jobs',
libraryID: 4264
},
{
title: 'Mockingjay: The Final Book of The Hunger Games',
author: 'Suzanne Collins',
libraryID: 3245
}];Expected Output :
[[object Object] {
author: "Walter Isaacson",
libraryID: 4264,
title: "Steve Jobs"
}, [object Object] {
author: "Suzanne Collins",
libraryID: 3245,
title: "Mockingjay: The Final Book of The Hunger Games"
}, [object Object] {
author: "The Road Ahead",
libraryID: 1254,
title: "Bill Gates"
}]
Test Data :
console.log(all_properties(Array));
["length", "name", "arguments", "caller", "prototype", "isArray", "observe", "unobserve"]
[key, value] pairs.