-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathday7.html
More file actions
66 lines (57 loc) · 1.21 KB
/
day7.html
File metadata and controls
66 lines (57 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
var myVar = 100.
function WholsThis(){
// alert(this.myVar);
alert(this.myVar
WholsThis();*/
/*ar gb="window";
function a(){
var local1="Hello";
console.log(local1);
b();
console.log("Students");
}
function b(){
console.log("B-Tech-CSE");
c();
}
function c(){
console.log("Group 02");
}
a();*/
var Student = {
sname:"Aayushi",
srno:"24",
sclass:"BE"
}
var result=function()
{
//return 78;
document.get(Student.sname);
}
result();*/
/*console.log("i am a"+data);
var data="teacher";
console.log("i am a"+data);
function whoami(){
console.log("i am a"+data);
var data="computer";
console.log("i am a"+data);
}
var data1="Hello Students";
function first(){//outer func
var data2="How are u?";
Second();
function Second(){// second function ko declare bhi first func ke andr hi kiya..so it is inner func
var data3="let's understand scope chain";
console.log(data1+data2+data3);
/
//new code
is_string = function(input) {
if (Object.prototype.toString.call(input) === '[object String]')
return true;
else
return false;
};
console.log(is_string('w3resource'));
console.log(is_string([1, 2, 4, 0]));
//end of code