当前位置:网站首页>Niuke JS2 file extension
Niuke JS2 file extension
2022-07-02 17:23:00 【Drowned fish u】
Cattle guest JS2 File extension
Title Description
Please complete it JavaScript Code , The file name extension is required to be returned as a string , The file name parameter is "filename".
Answer key :split(‘,’) Split string , Returns a split string array .reverse() Inverted array , Spell it ‘.’ return .
<html lang="en">
<head>
<meta charset="UTF-8">
</head>
<body>
<script> const _getExFilename = (filename) => {
// The completion code let arr = filename.split('.') arr.reverse() return '.' + arr[0] } </script>
</body>
</html>
边栏推荐
- Interpretation of key parameters in MOSFET device manual
- Geoserver: publishing PostGIS data sources
- LeetCode:1380. Lucky number in matrix -- simple
- The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
- AP and F107 data sources and processing
- 福元医药上交所上市:市值105亿 胡柏藩身价超40亿
- Tech talk activity preview | building intelligent visual products based on Amazon kVs
- [web technology] 1233 seconds understand web component
- Briefly introduce the use of base64encoder
- 871. Minimum refueling times
猜你喜欢
线性规划例题 投资的收益与风险
默认浏览器设置不了怎么办?
使用知行之桥的API端口,提供资源供合作伙伴访问
Understand one article: four types of data index system
Qstype implementation of self drawing interface project practice (II)
Sword finger offer 26 Substructure of tree
[essay solicitation activity] Dear developer, RT thread community calls you to contribute
【Leetcode】14. Longest Common Prefix
Sword finger offer 22 The penultimate node in the linked list
绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
随机推荐
&lt; IV & gt; H264 decode output YUV file
剑指 Offer 25. 合并两个排序的链表
什么是敏捷开发流程
从收集到输出:盘点那些强大的知识管理工具——优秀笔记软件盘点(四)
How to transfer business data with BorgWarner through EDI?
Geoserver: publishing PostGIS data sources
宝宝巴士创业板IPO被终止:曾拟募资18亿 唐光宇控制47%股权
LeetCode:1380. Lucky number in matrix -- simple
A case study of college entrance examination prediction based on multivariate time series
IP地址转换地址段
Ocio V2 reverse LUT
AP and F107 data sources and processing
简单介绍BASE64Encoder的使用
默认浏览器设置不了怎么办?
ceph 原理
si446使用记录(一):基本资料获取
Baobab's gem IPO was terminated: Tang Guangyu once planned to raise 1.8 billion to control 47% of the equity
Win10 system uses pip to install juypter notebook process record (installed on a disk other than the system disk)
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
Sword finger offer 27 Image of binary tree