When we get noSuchMethodError:main exception
Anonymous Poll
57%
After compilation
43%
Before compilation
Which exception is noSuchMethodError:main
Anonymous Poll
63%
Runtime exception
37%
Compile time error
SATHYA TECHNOLOGIES
https://t.me/sathyareact
https://t.me/sathyareact
Telegram
SathyaTechnologies | React
React
<script>
let obj = {
key1:{
sub: "ReactJS"
}
}
//let {key1} =obj;
//let {sub} =key1;
document.write(obj.key1.sub);
</script>
let obj = {
key1:{
sub: "ReactJS"
}
}
//let {key1} =obj;
//let {sub} =key1;
document.write(obj.key1.sub);
</script>
<script>
let obj={
key1:{
sub: "ReactJS"
},
key2:{
sub: "NodeJs"
}
}
let {key1,key2} = obj;
let {sub:sub1}=key1;
let {sub:sub2}=key2;
document.write(sub1,sub2);
//ReactJS NodeJs
</script>
let obj={
key1:{
sub: "ReactJS"
},
key2:{
sub: "NodeJs"
}
}
let {key1,key2} = obj;
let {sub:sub1}=key1;
let {sub:sub2}=key2;
document.write(sub1,sub2);
//ReactJS NodeJs
</script>
<script>
let obj={
key1:function(){
return
}
};
let {key1} =obj;
document.write(key1());
</script>
let obj={
key1:function(){
return
hello }
};
let {key1} =obj;
document.write(key1());
</script>
<script>
let obj = {
key1:function(){
return{
key1 :"hello"
}
}
};
let {key1} = obj;
let a=key1();
document.write(a.key1);
</script>
let obj = {
key1:function(){
return{
key1 :"hello"
}
}
};
let {key1} = obj;
let a=key1();
document.write(a.key1);
</script>
<script>
let obj = {
name: "Sathya",
batch: "K L M N Batck",
course: "ReactJS",
students: [{rno: 111, name: "bhavani", company : "tcs"},
{rno 222, name : "bhavani1", company: "infosys"}, {rno 333, name: "bhavani2", company : "wipro"},
{rno 444, name: "bhavan3", company : "amazon"}, {rno 555, name : "bhavan4", company "twitter"}],
feedback:
};
"good"
</script>
let obj = {
name: "Sathya",
batch: "K L M N Batck",
course: "ReactJS",
students: [{rno: 111, name: "bhavani", company : "tcs"},
{rno 222, name : "bhavani1", company: "infosys"}, {rno 333, name: "bhavani2", company : "wipro"},
{rno 444, name: "bhavan3", company : "amazon"}, {rno 555, name : "bhavan4", company "twitter"}],
feedback:
};
"good"
</script>