Skip to main content

TRY & CATCH IN JS

<body>
 <p id="demo"></p>
 <script>
 try {
 alertnot("hello bhai");
 }
 catch(err)
{
document.getElementById("demo").innerHTML = err.massege;
}
</script>
</body>

Comments

Popular posts from this blog

Add two string in js

To add a space between the strings stored in variables a and b when concatenating them in JavaScript, you can simply include a space character within the concatenation. Here's how you can modify your code to achieve that:

Comment in python_05

                                Comment in python  Single line comment single line comment are use to comment on one line as     #comment multiline comment multiline comment sre use to multiline comment, as '''comment'''