Javscript Write And Alert Function

S
0
Document

Write Function In Javascript

  1. It is a function that is utilized for the purpose of displaying or presenting data.
  2. The write function can display various types of data, including strings, numbers, booleans, arrays, and objects.
  3. When the write function is executed, it will overwrite or replace all existing HTML code with the new content generated by the function.
  4. The write function possesses the ability to access and modify HTML tags. By utilizing HTML tags within the function, it facilitates the inclusion of HTML elements as an integral part of the presented content.

Alert Function In Javascript

  1. It is a function utilized to showcase data within a popup or modal window.
  2. The alert function can display various types of data, including strings, numbers, booleans, arrays, and objects.
  3. The alert function does not have access to HTML tags.
  4. When employing HTML tags within the alert function, they will be treated as regular text and presented accordingly, without being interpreted as HTML elements.

Post a Comment

0Comments

hiiii, hello dear how are you ?

Post a Comment (0)