JAVASCRIPT( ⒿѦṼ∀$☾ℜℑṔ✞ ) - Study24x7
Social learning Network
study24x7

Default error msg

Login

New to Study24x7 ? Join Now
Already have an account? Login
javascriptjs Cover image
javascriptjs
JAVASCRIPT( ⒿѦṼ∀$☾ℜℑṔ✞ )
  • Followers
  • Latest Feeds
  • Articles
  • Question
  • Course
  • About
  • Review
Interests
Computer Programming Web Development Scripts IIT-JEE
See more
8 followers study24x7 02 Aug 2023 11:05 AM study24x7 study24x7

Which of the following options correctly demonstrates the use of the "addEventListener" method to attach an event handler to a button element in JavaScript?

A

button.addEventListener("click", function() { alert("Button clicked!"); });

B

button.addEventListener("onclick", function() { alert("Button clicked!"); });

C

button.addEvent("click", function() { alert("Button clicked!"); });

D

button.attachEvent("click", function() { alert("Button clicked!"); });

study24x7
Write a comment
8 followers study24x7 13 Feb 2021 09:15 AM study24x7 study24x7

study24x7
Write a comment
8 followers study24x7 10 Dec 2020 11:40 PM study24x7 study24x7

var arr=[ ]; console.log(arr==[ ]); output in console According to javascript is

A

0

B

1

C

true

D

false

study24x7
Write a comment
8 followers study24x7 17 Nov 2020 10:48 AM study24x7 study24x7

1. 0=="0"; 2. 0==""; 3. "0" == ""; In java script which of the following is correct.

A

Statement 1 and 2 are true. statement 3 is false

B

Statement 1,2 and 3 all are true

C

Statement 1,2 and 3 all are false

D

Statement 1 and 2 are false. statement 3 is true

study24x7
Write a comment
Ratings
0.0
out of 5
0 Ratings
5 study24x7
 
0.0
4 study24x7
 
0.0
3 study24x7
 
0.0
2 study24x7
 
0.0
1 study24x7
 
0.0
Related Pages

TET

66 followers