For smart Primates & ROBOTS (oh and ALIENS ).

Thursday, January 25, 2024

Define own custom HTML element

 Define own custom HTML elementHere I am demonstrating how to define your own custom HTML element or control and how to use it.Define is as <my-test-element-one> </my-test-element-one>and then use my JavaScript. The complete code it below:<!DOCTYPE html><html lang="en">  <head>    <title>Hello!</title>   ...
Share:

Sunday, January 07, 2024

Show array data without for loop in javascript

 Show array data without for loop in javascript Use below code  <script>const strs1 = ["one ", "two", "three"];const newst1 = strs.map(st => { console.log(st)});const mynum = [1, 2, 3];const newnum = mynum.map(num =>  { console.log(num)});</script&...
Share:

Ads Inside Post

Powered by Blogger.

Archive