TypeOf-2

 

TypeOf keyword is used to get type of provided variable. So it will return string and will print true.

 
 
 
<!DOCTYPE html> <html> <head> <title>Welcome to LearnKode - A code learning platform</title> </head> <body> <script> var description = "abcdfghjk"; var result = (typeof description === 'string'); document.write(result); </script> </body> </html>
Output