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>