Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

// Write a function that takes a number (a) as argument // Split a into its individual digits and return them in an array // Tipp: you might want to change the type of the number for the splitting

// Write a function that takes a number (a) as argument
// Split a into its individual digits and return them in an array
// Tipp: you might want to change the type of the number for the splitting
function myFunction(a){
return String(a).split("").map(Number);
}
Comment

PREVIOUS NEXT
Code Example
Javascript :: how to check what browser you are using 
Javascript :: makeStyles is not longer exported from @mui/material/styles 
Javascript :: try catch javascript 
Javascript :: add countdown timer to javascript quiz 
Javascript :: search a word and separate in javascript 
Javascript :: change build directory react 
Javascript :: npm ERR! Error: connect ECONNREFUSED 
Javascript :: react algolia range slider 
Javascript :: nextelementsibling javascript 
Javascript :: prevent click other tab bootstrap tabs 
Javascript :: js event div class adding 
Javascript :: javascript how to merge arrays 
Javascript :: what is react 
Javascript :: angular retry interceptor 
Javascript :: js copy text 
Javascript :: get value of textarea jquery 
Javascript :: How to Use the trim() String Method in javascript 
Javascript :: javascript location.href 
Javascript :: define value in js 
Javascript :: check number javascript 
Javascript :: or operator js 
Javascript :: string padStart padEnd 
Javascript :: javascript timestamp conversion 
Javascript :: onclick hold react 
Javascript :: createelement with id 
Javascript :: script tags in react 
Javascript :: js difference between two arrays of objects 
Javascript :: use localstorage hook 
Javascript :: how to get data from input field in react js 
Javascript :: delete item from array 
ADD CONTENT
Topic
Content
Source link
Name
3+3 =